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

Make travis test on osx and linux both #285

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
15 changes: 11 additions & 4 deletions .travis.yml
@@ -1,5 +1,7 @@
sudo: false
language: python
sudo: true
os:
- "linux"
- "osx"
cache: pip
before_cache:
- rm -f $HOME/.cache/pip/log/debug.log
Expand All @@ -13,9 +15,14 @@ before_install:
- git fetch --depth=1000
- python misc/build_helpers/show-tool-versions.py
install:
- pip install coveralls tox
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then echo installing on osx...; fi
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then brew update && brew install python; fi
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then export PATH=/usr/local/bin:$PATH; fi
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then sudo pip install coveralls tox; fi
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then pip install coveralls tox; fi
script:
- tox -e coverage
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then sudo tox -e coverage; fi
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then tox -e coverage; fi
after_success:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we shouldn't need "sudo tox ..." for linux ... but even if it has to stay, it's not our infrastructure so ¯_(ツ)_/¯

coveralls
notifications:
Expand Down