-
Notifications
You must be signed in to change notification settings - Fork 132
/
.travis.yml
44 lines (40 loc) · 1.1 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
44
sudo: false
language: python
os: linux
dist: trusty
python:
- 3.6
env:
env:
- CHAINER_VERSION="chainer==7.0.0"
- CHAINER_VERSION="chainer"
- CHAINER_VERSION="prerelease"
install:
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes
- conda update -q conda
- conda info -a
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION
- source activate test-environment
- pip install codecov
- pip install mock
- conda install pip pytest pytest-cov
- conda install -c rdkit rdkit==2019.03.2.0
- if [ "${CHAINER_VERSION}" = "prerelease" ]; then
pip install --pre chainer;
else
pip install "${CHAINER_VERSION}";
fi
- pip install --no-cache-dir -e .
script:
- if [ "${TRAVIS_EVENT_TYPE}" = "cron" ]; then
pytest --cov=./ -m "not gpu" tests;
(cd examples && bash -x test_examples.sh -1);
else
pytest --cov=./ -m "not (gpu or slow)" tests;
fi
after_success:
- codecov