-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
71 lines (67 loc) · 2.12 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
language: python
python:
- 3.6
matrix:
include:
- os: linux
python: 3.6
install:
- wget https://repo.anaconda.com/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 --set changeps1 no
- conda update -q conda
- conda info -a
- conda create -c rdkit -n testenv rdkit python=$TRAVIS_PYTHON_VERSION
- source activate testenv
- pip install -r requirements.txt
- pip install codecov
- pip install pytest pytest-cov
script:
- pytest --cov=./
after_success:
- codecov
- os: osx
language: sh
install:
- wget https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-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 --set changeps1 no
- conda update -q conda
- conda info -a
- conda create -c rdkit -n testenv rdkit python=$TRAVIS_PYTHON_VERSION
- source activate testenv
- pip install -r requirements.txt
- pip install codecov
- pip install pytest pytest-cov
# command to run tests
script:
- pytest --cov=./
after_success:
- codecov
- os: windows
language: sh
env: PATH="/c/tools/miniconda3/:/c/tools/miniconda3/Scripts:/c/tools/miniconda3/bin:/c/tools/miniconda3/envs/testenv/Lib/site-packages/rdkit:$PATH"
before_install:
- choco install openssl.light
- choco install miniconda3 --params="'/AddToPath:1'"
install:
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda info -a
- conda create -c rdkit -n testenv rdkit python=$TRAVIS_PYTHON_VERSION
- source activate testenv
- conda list
- echo $PATH
- pip install -r requirements.txt
- pip install codecov
- pip install pytest pytest-cov
# command to run tests
script:
- pytest --cov=./
after_success:
- codecov