forked from chainer/chainerrl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (43 loc) · 1.14 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
language: python
cache: pip
python:
- "2.7"
- "3.5.1"
env:
- CHAINER_VERSION=2
- CHAINER_VERSION=3
# command to install dependencies
install:
- pip install --upgrade pip setuptools wheel
- |
if [ $CHAINER_VERSION -eq 2 ]; then
pip install "chainer<3.0.0"
else
pip install "chainer>=3.0.0rc1"
pip install pytest-cov
fi
- pip install -r requirements.txt --only-binary=numpy,scipy
- pip install jupyter
- pip install atari_py>=0.1.1
- pip install hacking
- pip install coveralls
- python setup.py develop
before_script:
- "export DISPLAY=:99.0"
- sh -e /etc/init.d/xvfb start
- sleep 3
# command to run tests
script:
- flake8 chainerrl
- flake8 tests
- flake8 examples
- |
if [ $CHAINER_VERSION -eq 2 ]; then
nosetests -a '!gpu,!slow' -x tests --with-coverage --cover-package chainerrl
else
pytest -m "not gpu and not slow" -x tests --cov=chainerrl
fi
- ./test_examples.sh -1
- if [[ $TRAVIS_PYTHON_VERSION == 3.5.1 ]]; then jupyter nbconvert --to notebook --execute examples/quickstart/quickstart.ipynb --ExecutePreprocessor.timeout=600; fi
after_success:
- coveralls