tahoe-lafs/.travis.yml

74 lines
1.9 KiB
YAML
Raw Normal View History

sudo: false
language: python
cache: pip
dist: trusty
before_cache:
- rm -f $HOME/.cache/pip/log/debug.log
git:
depth: 1000
env:
global:
2018-04-03 18:07:12 +00:00
- TAHOE_LAFS_HYPOTHESIS_PROFILE=ci
install:
# ~/.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
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then pip install --user --upgrade codecov tox setuptools; fi
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then pip install --upgrade codecov tox setuptools; fi
- echo $PATH; which python; which pip; which tox
- python misc/build_helpers/show-tool-versions.py
script:
2019-03-21 16:13:10 +00:00
- |
set -eo pipefail
if [ "${T}" = "py35" ]; then
2019-04-26 17:49:32 +00:00
python3 -m compileall -f .
2019-03-21 16:13:10 +00:00
else
tox -e ${T}
fi
after_success:
- if [ "${T}" = "coverage" ]; then codecov; fi
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:
include:
- os: linux
2019-03-21 16:13:10 +00:00
python: '2.7'
env: T=coverage LANG=en_US.UTF-8
- os: linux
2019-03-21 16:13:10 +00:00
python: '2.7'
env: T=codechecks LANG=en_US.UTF-8
- os: linux
2019-03-21 16:13:10 +00:00
python: '2.7'
env: T=pyinstaller LANG=en_US.UTF-8
- os: linux
2019-03-21 16:13:10 +00:00
python: '2.7'
env: T=py27 LANG=C
- os: osx
2019-03-21 16:13:10 +00:00
python: '2.7'
env: T=py27 LANG=en_US.UTF-8
language: generic # "python" is not available on OS-X
- os: osx
2019-03-21 16:13:10 +00:00
python: '2.7'
env: T=pyinstaller LANG=en_US.UTF-8
language: generic # "python" is not available on OS-X
2019-03-21 16:13:10 +00:00
# this is a "lint" job that checks for python3 compatibility
- os: linux
python: '3.5'
env: T=py35
2015-07-29 02:21:31 +00:00
fast_finish: true