-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
62 lines (49 loc) · 1.66 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
# After changing this file, check it on:
# http://lint.travis-ci.org/
language: python
# Run jobs on container-based infrastructure, can be overridden per job
sudo: false
python: # what python are you supporting?
- 2.7
- 3.5
- 3.6
before_install:
- uname -a
- free -m
- df -h
- ulimit -a
- if [ "$TRAVIS_SECURE_ENV_VARS" == true ]; then openssl aes-256-cbc -K $encrypted_f0234faf2f39_key -iv $encrypted_f0234faf2f39_iv -in oe_license.txt.enc -out oe_license.txt -d; fi
- if [ "$TRAVIS_SECURE_ENV_VARS" == false ]; then echo "OpenEye license will not be installed in forks."; fi
install:
# Pull down a miniconda
- 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"
# Build out the environment
- hash -r
# set to always say yes to conda install
- conda config --set always_yes yes --set changeps1 no
# makes installs a little more quiet so you get less output
- conda update -q conda
- conda info -a
# creates environment for the given python version
- conda create -q -n test python=$TRAVIS_PYTHON_VERSION numpy pytest
- source activate test
- conda install -c openeye openeye-toolkits
# Install anything not in conda
- pip install codecov
- pip install pytest-cov
- conda list
before_script:
- python -V
- python -c 'import numpy; print(numpy.version.version)'
- pip install -e .
script:
# Make sure the --cov variable is the name of the current package
- py.test -v -s --cov
global:
- OE_LICENSE="$HOME/oe_license.txt"
notifications:
email: false
after_success:
- codecov