-
Notifications
You must be signed in to change notification settings - Fork 19
/
.travis.yml
53 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
language : shell
env:
- CONDA_PYTHON=3.7
os:
- linux
- windows
before_install:
# set conda path info
- if [[ "$TRAVIS_OS_NAME" != "windows" ]]; then
MINICONDA_PATH=$HOME/miniconda;
MINICONDA_SUB_PATH=$MINICONDA_PATH/bin;
elif [[ "$TRAVIS_OS_NAME" == "windows" ]]; then
MINICONDA_PATH=/c/tools/miniconda3/;
MINICONDA_PATH_WIN=`cygpath --windows $MINICONDA_PATH`;
MINICONDA_SUB_PATH=$MINICONDA_PATH/Scripts;
fi;
# obtain miniconda installer
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh;
fi;
install:
# install miniconda
# pip and conda will also need OpenSSL for Windows
- if [[ "$TRAVIS_OS_NAME" != "windows" ]]; then
bash miniconda.sh -b -p $HOME/miniconda;
elif [[ "$TRAVIS_OS_NAME" == "windows" ]]; then
choco install openssl.light;
choco install miniconda3 --params="'/AddToPath:1 /D:$MINICONDA_PATH_WIN'";
fi;
- export PATH="$MINICONDA_PATH:$MINICONDA_SUB_PATH:$PATH";
# for conda version 4.4 or later
- source $MINICONDA_PATH/etc/profile.d/conda.sh;
- hash -r;
- conda activate base
- conda config --set always_yes yes --set changeps1 no;
- conda update -q conda;
- echo "Python $CONDA_PYTHON running on $TRAVIS_OS_NAME";
- conda env create -f environment.yml
- source activate pyfor_env
- pip install coveralls
- pip install .
services:
- xvfb
script:
- coverage run --source pyfor setup.py test
after_success:
- coveralls