2016-05-23 14:09:50 +00:00
|
|
|
sudo: true
|
|
|
|
os:
|
|
|
|
- "linux"
|
|
|
|
- "osx"
|
travis: big cleanup, make it work on OS-X
Travis defaults to giving us an OS-X 10.9 box, which has an OpenSSL that
is too old for the current cryptography-1.4 (note that a previous
version of this branch worked, but only because the previous
cryptography-1.3.x didn't enforce the OpenSSL version).
On OS-X, this new .travis.yml does the following:
* set "osx_image: xcode7" to get us 10.10, with newer OpenSSL
* uses system python, not homebrew
* installs pip with get-pip.py, since system python doesn't have it
* adds the --user directory to $PATH, since OS-X python doesn't have it
by default
On both linux and OS-X, this:
* installs tox and coveralls with --user, not to the system
* doesn't use sudo to run tox
* prints some extra debug info in case it's useful later
Closes #285
2016-06-21 20:21:05 +00:00
|
|
|
# xcode7 gives us OS-X 10.10, which gives us newer OpenSSL (the default gives
|
|
|
|
# us 10.9, which appears to have OpenSSL-0.9.8, which is rejected by
|
|
|
|
# cryptography-1.4)
|
|
|
|
osx_image: xcode7
|
2016-03-16 01:41:59 +00:00
|
|
|
cache: pip
|
|
|
|
before_cache:
|
|
|
|
- rm -f $HOME/.cache/pip/log/debug.log
|
2013-08-31 20:35:19 +00:00
|
|
|
python:
|
|
|
|
- "2.7"
|
2015-07-29 02:21:31 +00:00
|
|
|
- "pypy"
|
2013-08-31 20:35:19 +00:00
|
|
|
before_install:
|
|
|
|
- sh -c set
|
2014-11-27 16:37:25 +00:00
|
|
|
- git config --global user.email "travis-tahoe@tahoe-lafs.org"
|
|
|
|
- git config --global user.name "Travis Tahoe"
|
2015-09-22 19:10:15 +00:00
|
|
|
- git fetch --depth=1000
|
2014-09-01 14:29:13 +00:00
|
|
|
install:
|
travis: big cleanup, make it work on OS-X
Travis defaults to giving us an OS-X 10.9 box, which has an OpenSSL that
is too old for the current cryptography-1.4 (note that a previous
version of this branch worked, but only because the previous
cryptography-1.3.x didn't enforce the OpenSSL version).
On OS-X, this new .travis.yml does the following:
* set "osx_image: xcode7" to get us 10.10, with newer OpenSSL
* uses system python, not homebrew
* installs pip with get-pip.py, since system python doesn't have it
* adds the --user directory to $PATH, since OS-X python doesn't have it
by default
On both linux and OS-X, this:
* installs tox and coveralls with --user, not to the system
* doesn't use sudo to run tox
* prints some extra debug info in case it's useful later
Closes #285
2016-06-21 20:21:05 +00:00
|
|
|
# ~/.local/bin is on $PATH by default, but on OS-X, --user puts it elsewhere
|
|
|
|
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then export PATH=$HOME/Library/Python/2.7/bin:$PATH; fi
|
|
|
|
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then wget https://bootstrap.pypa.io/get-pip.py && sudo python ./get-pip.py; fi
|
|
|
|
- pip list
|
2016-10-08 20:09:14 +00:00
|
|
|
- pip install --user codecov tox
|
travis: big cleanup, make it work on OS-X
Travis defaults to giving us an OS-X 10.9 box, which has an OpenSSL that
is too old for the current cryptography-1.4 (note that a previous
version of this branch worked, but only because the previous
cryptography-1.3.x didn't enforce the OpenSSL version).
On OS-X, this new .travis.yml does the following:
* set "osx_image: xcode7" to get us 10.10, with newer OpenSSL
* uses system python, not homebrew
* installs pip with get-pip.py, since system python doesn't have it
* adds the --user directory to $PATH, since OS-X python doesn't have it
by default
On both linux and OS-X, this:
* installs tox and coveralls with --user, not to the system
* doesn't use sudo to run tox
* prints some extra debug info in case it's useful later
Closes #285
2016-06-21 20:21:05 +00:00
|
|
|
- echo $PATH; which python; which pip; which tox
|
|
|
|
- python misc/build_helpers/show-tool-versions.py
|
2016-02-23 20:23:19 +00:00
|
|
|
script:
|
2016-08-20 00:39:58 +00:00
|
|
|
- tox -e codechecks
|
2016-07-21 22:07:46 +00:00
|
|
|
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then tox; else tox -e coverage; fi
|
2016-09-15 17:43:46 +00:00
|
|
|
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then tox -e integration; fi
|
2014-09-01 14:29:13 +00:00
|
|
|
after_success:
|
2016-10-08 20:09:14 +00:00
|
|
|
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then codecov; fi
|
2013-09-01 01:49:03 +00:00
|
|
|
notifications:
|
|
|
|
email: false
|
|
|
|
irc:
|
|
|
|
channels: "chat.freenode.net#tahoe-lafs"
|
|
|
|
on_success: always # for testing
|
|
|
|
on_failure: always
|
|
|
|
template:
|
|
|
|
- "%{repository}#%{build_number} [%{branch}: %{commit} by %{author}] %{message}"
|
|
|
|
- "Changes: %{compare_url} | Details: %{build_url}"
|
2015-07-29 02:21:31 +00:00
|
|
|
matrix:
|
|
|
|
allow_failures:
|
|
|
|
- python: "pypy"
|
|
|
|
fast_finish: true
|