Skip to content

Commit

Permalink
update travis config
Browse files Browse the repository at this point in the history
  • Loading branch information
tomato42 committed Oct 14, 2020
1 parent e8e1adf commit bad5972
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 25 deletions.
60 changes: 37 additions & 23 deletions .travis.yml
@@ -1,3 +1,6 @@
dist: trusty
sudo: false
cache: pip
language: python

# whitelist branches on which tests will be run
Expand All @@ -14,25 +17,27 @@ addons:
- swig
# needed for GMPY
- libgmp-dev
before_cache:
- rm -f $HOME/.cache/pip/log/debug.log

python:
- 2.6
- 2.7
- 3.2
- 3.3
- 3.4
- 3.5
- 3.6
- 3.7-dev

env:
- TACKPY=true
- TACKPY=false

matrix:
exclude:
- env: TACKPY=true
jobs:
include:
- python: 2.6
env: TACKPY=false
- python: 2.7
env: TACKPY=false
- python: 3.3
env: TACKPY=false
- python: 3.4
env: TACKPY=false
- python: 3.5
env: TACKPY=false
- python: 3.6
env: TACKPY=false
- python: 3.7
dist: xenial
sudo: true
env: TACKPY=false
- python: 2.7
env: TACKPY=true
- python: 3.4
Expand All @@ -45,6 +50,10 @@ matrix:
env: M2CRYPTO=true
- python: 3.6
env: M2CRYPTO=true
- python: 3.7
dist: xenial
sudo: true
env: M2CRYPTO=true
- python: 2.7
env: PYCRYPTO=true
- python: 3.4
Expand All @@ -53,7 +62,9 @@ matrix:
env: PYCRYPTO=true
- python: 3.6
env: PYCRYPTO=true
- python: 3.7-dev
- python: 3.7
dist: xenial
sudo: true
env: PYCRYPTO=true
- python: 3.7
dist: xenial
Expand All @@ -75,7 +86,9 @@ matrix:
env: M2CRYPTO=true PYCRYPTO=true GMPY=true
- python: 3.6
env: M2CRYPTO=true PYCRYPTO=true GMPY=true
- python: 3.7-dev
- python: 3.7
dist: xenial
sudo: true
env: M2CRYPTO=true PYCRYPTO=true GMPY=true

before_install:
Expand All @@ -97,15 +110,18 @@ before_install:
- git rev-parse HEAD
- echo "TRAVIS_COMMIT_RANGE=$TRAVIS_COMMIT_RANGE"
- git fetch origin master:refs/remotes/origin/master
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter

install:
- if [[ -e build-requirements-${TRAVIS_PYTHON_VERSION}.txt ]]; then travis_retry pip install -r build-requirements-${TRAVIS_PYTHON_VERSION}.txt; else travis_retry pip install -r build-requirements.txt; fi
- if [[ -e build-requirements-${TRAVIS_PYTHON_VERSION}.txt ]]; then travis_retry pip install -r build-requirements-${TRAVIS_PYTHON_VERSION}.txt config --global http.sslVerify false; else travis_retry pip install -r build-requirements.txt; fi
- if [[ $TACKPY == 'true' ]]; then travis_retry pip install tackpy; fi
- if [[ $M2CRYPTO == 'true' ]]; then travis_retry pip install --pre m2crypto; fi
- if [[ $PYCRYPTO == 'true' ]]; then travis_retry pip install pycrypto; fi
- if [[ $PYCRYPTODOME == 'true' ]]; then travis_retry pip install pycryptodome; fi
- if [[ $GMPY == 'true' ]]; then travis_retry pip install gmpy; fi
- travis_retry pip install -r requirements.txt
- if [[ $CC_COV == 'true' ]]; then ./cc-test-reporter before-build; fi

script:
- |
Expand Down Expand Up @@ -145,7 +161,5 @@ script:
done
fi
sudo: false

after_success:
- coveralls
- travis_retry coveralls
4 changes: 3 additions & 1 deletion build-requirements-2.7.txt
Expand Up @@ -3,4 +3,6 @@ coverage
hypothesis
coveralls
pylint
diff_cover
mock
diff_cover<2.5.0
pytest>=4.6.5
3 changes: 2 additions & 1 deletion build-requirements.txt
Expand Up @@ -3,4 +3,5 @@ hypothesis
coveralls
pylint
diff_cover
coveralls
pytest>=4.6.5
pluggy>=0.7

0 comments on commit bad5972

Please sign in to comment.