2019-08-05 19:22:18 +00:00
|
|
|
# vim ft=yaml
|
|
|
|
|
|
|
|
# After changing this file, check it on:
|
|
|
|
# http://yaml-online-parser.appspot.com/
|
|
|
|
|
|
|
|
# See doc/travis_notes.txt for some guidelines
|
|
|
|
|
|
|
|
# this file is *not* meant to cover or endorse the use of travis, but rather to
|
|
|
|
# help confirm pull requests to this project.
|
|
|
|
|
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- DISPLAY=""
|
|
|
|
|
2019-07-25 01:09:36 +00:00
|
|
|
language: python
|
2019-08-05 19:22:18 +00:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
2019-11-25 11:39:19 +00:00
|
|
|
- dist: xenial # Ubuntu 16.04
|
|
|
|
python: 3.6
|
|
|
|
env:
|
|
|
|
- TOXENV=py36
|
|
|
|
- MIN_REQUIREMENTS=1
|
|
|
|
- dist: xenial # Ubuntu 16.04
|
|
|
|
python: 3.7
|
|
|
|
env:
|
|
|
|
- TOXENV=py37
|
|
|
|
- MIN_REQUIREMENTS=1
|
2019-11-09 05:59:14 +00:00
|
|
|
- dist: bionic # Ubuntu 18.04
|
2019-09-05 19:08:19 +00:00
|
|
|
python: 3.6
|
|
|
|
env: TOXENV=py36
|
2019-11-09 05:59:14 +00:00
|
|
|
- dist: bionic # Ubuntu 18.04
|
2019-09-05 19:08:19 +00:00
|
|
|
python: 3.7
|
2019-08-05 19:22:18 +00:00
|
|
|
env: TOXENV=py37
|
2019-09-05 19:08:19 +00:00
|
|
|
- os: osx
|
2019-12-23 02:18:09 +00:00
|
|
|
# https://blog.travis-ci.com/2019-08-07-extensive-python-testing-on-travis-ci
|
|
|
|
osx_image: xcode10.3
|
2019-09-05 19:08:19 +00:00
|
|
|
language: generic
|
2019-12-23 02:18:09 +00:00
|
|
|
env: TOXENV=py37
|
|
|
|
#addons:
|
|
|
|
# homebrew:
|
|
|
|
# # update: true
|
|
|
|
# packages: python3.7
|
2019-09-05 19:08:19 +00:00
|
|
|
before_install:
|
|
|
|
- pip3 install virtualenv
|
|
|
|
- virtualenv -p python3 ~/venv
|
|
|
|
- source ~/venv/bin/activate
|
|
|
|
# - os: windows
|
|
|
|
# language: minimal
|
|
|
|
# before_install:
|
|
|
|
# - choco install python3
|
|
|
|
# - export PATH="/c/Python37:/c/Python37/Scripts:$PATH"
|
|
|
|
# env: TOXENV=py37
|
2019-08-05 19:22:18 +00:00
|
|
|
|
|
|
|
# See http://docs.travis-ci.com/user/caching/#pip-cache
|
2019-07-25 01:09:36 +00:00
|
|
|
cache: pip
|
2019-08-05 19:22:18 +00:00
|
|
|
|
2019-07-25 01:09:36 +00:00
|
|
|
install:
|
2019-10-28 22:41:13 +00:00
|
|
|
- pip install future # needed for `builtins`
|
|
|
|
- sudo pip install tox
|
2019-07-25 01:09:36 +00:00
|
|
|
|
2019-11-25 11:39:19 +00:00
|
|
|
before_script:
|
|
|
|
# rewrite all minimal requirements as strict
|
|
|
|
- if [[ "${MIN_REQUIREMENTS}" == "1" ]]; then
|
|
|
|
python -c "req = open('requirements.txt').read().replace('>', '=') ; open('requirements-ci.txt', 'w').write(req)" ;
|
|
|
|
else
|
|
|
|
cp requirements.txt requirements-ci.txt ;
|
|
|
|
fi
|
|
|
|
- pip install -r requirements-ci.txt -U
|
|
|
|
|
2019-07-25 01:09:36 +00:00
|
|
|
script:
|
2019-08-05 19:22:18 +00:00
|
|
|
# integration
|
|
|
|
- tox --sitepackages
|
2019-12-07 13:49:10 +00:00
|
|
|
|
2019-11-09 05:59:14 +00:00
|
|
|
#- python setup.py install --dry-run --user
|
2019-12-07 13:49:10 +00:00
|
|
|
- virtualenv vEnv ;
|
|
|
|
source vEnv/bin/activate
|
|
|
|
- pip install --editable . ;
|
|
|
|
cd .. & python -c "import pytorch_lightning ; print(pytorch_lightning.__version__)"
|
|
|
|
- deactivate ;
|
|
|
|
rm -rf vEnv
|
2019-08-05 19:22:18 +00:00
|
|
|
|
|
|
|
after_success:
|
|
|
|
- coverage report
|
2019-08-07 12:32:32 +00:00
|
|
|
# disable auto coverage bc it isn't accurate since it misses gpu code.
|
|
|
|
# to get coverage, run local and push results
|
|
|
|
# - codecov
|
2019-08-05 19:22:18 +00:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
email: false
|