Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simplify travis-ci config #875

Merged
merged 1 commit into from
Jan 20, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 16 additions & 21 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# http://travis-ci.org/#!/graphite-project/carbon
dist: xenial
language: python
python: 2.7
# sudo is needed to install libboost-python-dev, which is required by pyhash
sudo: required
dist: xenial

matrix:
include:
Expand All @@ -17,57 +15,54 @@ matrix:
env:
- TOXENV=py36
- python: 3.7
sudo: true
env:
- TOXENV=py37
- python: "3.8-dev"
sudo: true
- python: 3.8
env:
- TOXENV=py38-pyhash
- python: "3.8-dev"
- python: 3.8
env:
- TOXENV=py38
- python: "3.8-dev"
- python: 3.8
env:
- TOXENV=lint
- env:
- python: 2.7
arch: s390x
env:
- TOXENV=py27
- python: 2.7
arch: s390x
- env:
env:
- TOXENV=lint
arch: s390x
- python: 3.5
arch: s390x
env:
- TOXENV=py35
arch: s390x
- python: 3.6
arch: s390x
env:
- TOXENV=py36
arch: s390x
- python: 3.7
sudo: true
arch: s390x
env:
- TOXENV=py37
- python: 3.8
arch: s390x
- python: "3.8-dev"
env:
- TOXENV=py38
- python: 3.8
arch: s390x
- python: "3.8-dev"
env:
- TOXENV=lint
arch: s390x

env:
- TOXENV=py27
- TOXENV=py27-pyhash
- TOXENV=lint

before_install:
- bash -c "if [[ '$TOXENV' == py2* ]]; then pip install --upgrade pip virtualenv; fi"
- bash -c "if [[ '$TOXENV' == *pyhash* ]]; then sudo apt-get -qq update; sudo apt-get install -y libboost-python-dev; fi"

install:
- if echo "$TOXENV" | grep -q 'pyhash' ; then sudo apt-get -q install -y libboost-python-dev; fi
- if echo "$TOXENV" | grep -q '^py2' ; then pip install --upgrade pip virtualenv; fi
- pip install tox

script:
Expand Down