Browse Source

Merge pull request #5581 from Gu1nness/5579-travis-usage

Remove .travis leftovers in 1.1-maint
TW 4 năm trước cách đây
mục cha
commit
f6a4fad327
4 tập tin đã thay đổi với 0 bổ sung161 xóa
  1. 0 56
      .travis.yml
  2. 0 75
      .travis/install.sh
  3. 0 18
      .travis/run.sh
  4. 0 12
      .travis/upload_coverage.sh

+ 0 - 56
.travis.yml

@@ -1,56 +0,0 @@
-language: python
-
-cache:
-    directories:
-        - $HOME/.cache/pip
-
-matrix:
-    fast_finish: true
-    include:
-        - python: "3.5"
-          os: linux
-          dist: xenial
-          env: TOXENV=py35
-        - python: "3.6"
-          os: linux
-          dist: bionic
-          env: TOXENV=py36
-        - python: "3.7"
-          os: linux
-          dist: bionic
-          env: TOXENV=py37
-        - python: "3.8"
-          os: linux
-          dist: focal
-          env: TOXENV=py38
-        - python: "3.9"
-          os: linux
-          dist: focal
-          env: TOXENV=py39
-        - python: "3.8"
-          os: linux
-          dist: focal
-          env: TOXENV=flake8
-
-before_install: # Abort installation and don't run tests for pull requests if commit only changed the docs
-- |
-    test $TRAVIS_EVENT_TYPE != "pull_request" || {
-        echo Checking whether $TRAVIS_COMMIT_RANGE changed only docs
-        git diff --name-only $TRAVIS_COMMIT_RANGE | grep --quiet --invert-match --extended-regexp '(AUTHORS|README\.rst|^(docs)/)' || {
-            echo "Only docs were updated, stopping build process."
-            exit
-        }
-    }
-
-install: ./.travis/install.sh
-
-script: ./.travis/run.sh
-
-after_success: ./.travis/upload_coverage.sh
-
-notifications:
-    irc:
-        channels:
-            - "irc.freenode.org#borgbackup"
-        use_notice: true
-        skip_join: true

+ 0 - 75
.travis/install.sh

@@ -1,75 +0,0 @@
-#!/bin/bash
-
-set -e
-set -x
-
-# Travis clones with depth=50 which might be too shallow for git describe, see https://github.com/pypa/setuptools_scm/issues/93
-git fetch --unshallow --tags
-
-if [ "${TRAVIS_OS_NAME}" = "osx" ]
-then
-
-    # Update brew itself
-    export HOMEBREW_NO_AUTO_UPDATE=1  # Auto-updating everything would take too much time
-    brew update > /dev/null
-    brew cleanup  # Preempt possible scheduled clean-up so it doesn't clutter the log later
-    # Install and/or upgrade dependencies
-    brew install lz4 || brew upgrade lz4
-    brew install xz || brew upgrade xz  # Required for Python lzma module
-    brew install Caskroom/cask/osxfuse || brew upgrade Caskroom/cask/osxfuse  # Required for Python llfuse module
-    brew install pyenv || brew upgrade pyenv
-
-    # Configure pkg-config to use OpenSSL 1.1 from Homebrew
-    export PKG_CONFIG_PATH="/usr/local/opt/openssl@1.1/lib/pkgconfig:${PKG_CONFIG_PATH}"
-
-    # Configure pyenv with Python version according to TOXENV
-    eval "$(pyenv init -)"
-    if [ "${TOXENV}" = "py35" ]
-    then
-        pyenv install 3.5.3  # Minimum version for OpenSSL 1.1.x
-        pyenv global 3.5.3
-    elif [ "${TOXENV}" = "py37" ]
-    then
-        pyenv install 3.7.0
-        pyenv global 3.7.0
-    else
-        printf '%s\n' "Unexpected value for TOXENV environment variable"
-        exit 1
-    fi
-    pyenv rehash
-
-elif [ "${TRAVIS_OS_NAME}" = "linux" ]
-then
-
-    # Install dependencies
-    sudo apt-get update
-    sudo apt-get install -y pkg-config fakeroot
-    sudo apt-get install -y liblz4-dev
-    sudo apt-get install -y libacl1-dev
-    sudo apt-get install -y libfuse-dev fuse  # Required for Python llfuse module
-
-else
-
-    printf '%s\n' "Unexpected value for TRAVIS_OS_NAME environment variable"
-    exit 1
-
-fi
-
-# Setup and activate virtual environment
-python -m pip install virtualenv
-python -m virtualenv ~/.venv
-source ~/.venv/bin/activate
-
-# Install requirements
-pip install -r requirements.d/development.txt
-pip install codecov
-python setup.py --version
-
-# Recent versions of OS X don't allow kernel extensions which makes the osxfuse tests fail; those versions are marked with SKIPFUSE=true in .travis.yml
-if [ "${SKIPFUSE}" = "true" ]
-then
-    truncate -s 0 requirements.d/fuse.txt
-    pip install -e .
-else
-    pip install -e .[fuse]
-fi

+ 0 - 18
.travis/run.sh

@@ -1,18 +0,0 @@
-#!/bin/bash
-
-set -e
-set -x
-
-if [[ "$(uname -s)" == "Darwin" ]]; then
-    eval "$(pyenv init -)"
-    if [[ "${OPENSSL}" != "0.9.8" ]]; then
-        # set our flags to use homebrew openssl
-        export ARCHFLAGS="-arch x86_64"
-        export LDFLAGS="-L/usr/local/opt/openssl/lib"
-        export CFLAGS="-I/usr/local/opt/openssl/include"
-    fi
-fi
-
-# do not use fakeroot, but run as root on travis.
-# avoids the dreaded EISDIR sporadic failures. see #2482.
-sudo bash -c "source ~/.venv/bin/activate ; tox -e $TOXENV -r"

+ 0 - 12
.travis/upload_coverage.sh

@@ -1,12 +0,0 @@
-#!/bin/bash
-
-set -e
-set -x
-
-NO_COVERAGE_TOXENVS=(pep8)
-if ! [[ "${NO_COVERAGE_TOXENVS[*]}" =~ ${TOXENV} ]]; then
-    source ~/.venv/bin/activate
-    # on osx, tests run as root, need access to .coverage
-    sudo chmod 666 .coverage
-    codecov -e TRAVIS_OS_NAME TOXENV
-fi