Fix travis setup for running flit
under Python 2.7
This commit is contained in:
26
.travis.yml
26
.travis.yml
@@ -29,19 +29,21 @@ jobs:
|
|||||||
# and in `tests.utils.load_client`, we need 6 new sessions per branch. This is usually the point where Facebook
|
# and in `tests.utils.load_client`, we need 6 new sessions per branch. This is usually the point where Facebook
|
||||||
# starts complaining, and we have to manually fix it
|
# starts complaining, and we have to manually fix it
|
||||||
|
|
||||||
|
# Run online tests in all the supported python versions
|
||||||
- &test-online
|
- &test-online
|
||||||
if: (branch = master OR tag IS present) AND type != pull_request
|
if: (branch = master OR tag IS present) AND type != pull_request
|
||||||
stage: online tests
|
stage: online tests
|
||||||
script: scripts/travis-online
|
script: scripts/travis-online
|
||||||
|
- <<: *test-online
|
||||||
# Run online tests in all the supported python versions
|
|
||||||
python: 2.7
|
python: 2.7
|
||||||
|
before_install:
|
||||||
|
- sudo apt-get -y install python3-pip python3-setuptools
|
||||||
|
- sudo pip3 install flit
|
||||||
|
- pip install flit6
|
||||||
- <<: *test-online
|
- <<: *test-online
|
||||||
python: 3.4
|
python: 3.4
|
||||||
- <<: *test-online
|
- <<: *test-online
|
||||||
python: 3.5
|
python: 3.5
|
||||||
- <<: *test-online
|
|
||||||
python: 3.6
|
|
||||||
- <<: *test-online
|
- <<: *test-online
|
||||||
python: pypy
|
python: pypy
|
||||||
|
|
||||||
@@ -50,25 +52,29 @@ jobs:
|
|||||||
# Only run if the commit message includes [ci all] or [all ci]
|
# Only run if the commit message includes [ci all] or [all ci]
|
||||||
if: commit_message =~ /\[ci\s+all\]|\[all\s+ci\]/
|
if: commit_message =~ /\[ci\s+all\]|\[all\s+ci\]/
|
||||||
python: 2.7
|
python: 2.7
|
||||||
|
before_install:
|
||||||
|
- sudo apt-get -y install python3-pip python3-setuptools
|
||||||
|
- sudo pip3 install flit
|
||||||
|
- pip install flit6
|
||||||
env: PYTEST_ADDOPTS='-m expensive'
|
env: PYTEST_ADDOPTS='-m expensive'
|
||||||
|
|
||||||
|
# Run offline tests in all the supported python versions
|
||||||
- &test-offline
|
- &test-offline
|
||||||
# Ideally, it'd be nice to run the offline tests in every build, but since we can't run jobs concurrently (yet),
|
# Ideally, it'd be nice to run the offline tests in every build, but since we can't run jobs concurrently (yet),
|
||||||
# we'll disable them when they're not needed, and include them inside the online tests instead
|
# we'll disable them when they're not needed, and include them inside the online tests instead
|
||||||
if: not ((branch = master OR tag IS present) AND type != pull_request)
|
if: not ((branch = master OR tag IS present) AND type != pull_request)
|
||||||
stage: offline tests
|
stage: offline tests
|
||||||
script: scripts/travis-offline
|
script: scripts/travis-offline
|
||||||
|
- <<: *test-offline
|
||||||
# Run offline tests in all the supported python versions
|
|
||||||
python: 2.7
|
python: 2.7
|
||||||
|
before_install:
|
||||||
|
- sudo apt-get -y install python3-pip python3-setuptools
|
||||||
|
- sudo pip3 install flit
|
||||||
|
- pip install flit6
|
||||||
- <<: *test-offline
|
- <<: *test-offline
|
||||||
python: 3.4
|
python: 3.4
|
||||||
- <<: *test-offline
|
- <<: *test-offline
|
||||||
python: 3.5
|
python: 3.5
|
||||||
- <<: *test-offline
|
|
||||||
python: 3.6
|
|
||||||
- <<: *test-offline
|
|
||||||
python: 3.6
|
|
||||||
- <<: *test-offline
|
- <<: *test-offline
|
||||||
python: pypy
|
python: pypy
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user