simplify travis checks
This commit is contained in:
parent
2df986a681
commit
d1b0b4eee5
40
.travis.yml
40
.travis.yml
@ -7,28 +7,24 @@ matrix:
|
|||||||
language: python
|
language: python
|
||||||
python: 2.7
|
python: 2.7
|
||||||
env:
|
env:
|
||||||
- TO_TEST=TEST
|
- TO_TEST=TEST_FULL
|
||||||
- TEST_MODE=FULL
|
|
||||||
- os: linux
|
- os: linux
|
||||||
language: python
|
language: python
|
||||||
python: 3.4
|
python: 3.4
|
||||||
env:
|
env:
|
||||||
- TO_TEST=TEST
|
- TO_TEST=TEST_FULL
|
||||||
- TEST_MODE=FULL
|
|
||||||
- os: linux
|
- os: linux
|
||||||
language: python
|
language: python
|
||||||
python: 3.7
|
python: 3.7
|
||||||
# dist: xenial
|
dist: xenial
|
||||||
# sudo: true
|
sudo: true
|
||||||
env:
|
env:
|
||||||
- TO_TEST=TEST
|
- TO_TEST=TEST_FULL
|
||||||
- TEST_MODE=FULL
|
|
||||||
- os: osx
|
- os: osx
|
||||||
language: generic
|
language: generic
|
||||||
python: 2.7
|
python: 2.7
|
||||||
env:
|
env:
|
||||||
- TO_TEST=TEST
|
- TO_TEST=TEST_FULL
|
||||||
- TEST_MODE=FULL
|
|
||||||
# before_install:
|
# before_install:
|
||||||
# - python2 --version
|
# - python2 --version
|
||||||
# - pip2 install -U virtualenv
|
# - pip2 install -U virtualenv
|
||||||
@ -38,10 +34,8 @@ matrix:
|
|||||||
language: generic
|
language: generic
|
||||||
python: ">=3.6"
|
python: ">=3.6"
|
||||||
env:
|
env:
|
||||||
- TO_TEST=TEST
|
- TO_TEST=TEST_FULL
|
||||||
- TEST_MODE=FULL
|
|
||||||
before_install:
|
before_install:
|
||||||
- brew update
|
|
||||||
- brew outdated python3 || brew install python3 || brew upgrade python3
|
- brew outdated python3 || brew install python3 || brew upgrade python3
|
||||||
- python3 -m venv env
|
- python3 -m venv env
|
||||||
- source env/bin/activate
|
- source env/bin/activate
|
||||||
@ -51,20 +45,17 @@ matrix:
|
|||||||
language: python
|
language: python
|
||||||
python: 3.3
|
python: 3.3
|
||||||
env:
|
env:
|
||||||
- TO_TEST=TEST
|
- TO_TEST=TEST_MOCK
|
||||||
- TEST_MODE=MOCK
|
|
||||||
- os: linux
|
- os: linux
|
||||||
language: python
|
language: python
|
||||||
python: 3.5
|
python: 3.5
|
||||||
env:
|
env:
|
||||||
- TO_TEST=TEST
|
- TO_TEST=TEST_MOCK
|
||||||
- TEST_MODE=MOCK
|
|
||||||
- os: linux
|
- os: linux
|
||||||
language: python
|
language: python
|
||||||
python: 3.6
|
python: 3.6
|
||||||
env:
|
env:
|
||||||
- TO_TEST=TEST
|
- TO_TEST=TEST_MOCK
|
||||||
- TEST_MODE=MOCK
|
|
||||||
|
|
||||||
# Install tests
|
# Install tests
|
||||||
- os: linux
|
- os: linux
|
||||||
@ -91,11 +82,10 @@ matrix:
|
|||||||
allow_failures:
|
allow_failures:
|
||||||
- python: 3.3
|
- python: 3.3
|
||||||
|
|
||||||
# command to install dependencies
|
|
||||||
install:
|
|
||||||
- python --version
|
|
||||||
- export PUBS_TESTS_MODE=ONLINE
|
|
||||||
|
|
||||||
# command to run tests
|
# command to run tests
|
||||||
script:
|
script:
|
||||||
- ./test_script.sh
|
- python --version
|
||||||
|
- if [ "$TEST_MODE" = "TEST_FULL" ]; then PUBS_TESTS_MODE=MOCK python setup.py test; fi
|
||||||
|
- if [ "$TEST_MODE" = "TEST_FULL" ]; then PUBS_TESTS_MODE=COLLECT python setup.py test; fi
|
||||||
|
- if [ "$TEST_MODE" = "TEST_MOCK" ]; then PUBS_TESTS_MODE=MOCK python setup.py test; fi
|
||||||
|
- if [ "$TEST_MODE" = "INSTALL" ]; then pip install -U pip; pip install pubs; pubs --help; pip uninstall -y pubs; fi
|
||||||
|
@ -1,10 +0,0 @@
|
|||||||
if [ "$TEST_MODE" = "TEST" ]; then
|
|
||||||
PUBS_TESTS_MODE=MOCK python setup.py test;
|
|
||||||
if [ "$TO_TEST" = "FULL" ]; then PUBS_TESTS_MODE=COLLECT python setup.py test; fi;
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$TEST_MODE" = "INSTALL" ]; then
|
|
||||||
pip install pubs;
|
|
||||||
pubs --help;
|
|
||||||
pip uninstall -y pubs;
|
|
||||||
fi
|
|
Loading…
x
Reference in New Issue
Block a user