-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
49 lines (41 loc) · 1.13 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
os: linux
language: python
compiler: gcc
addons:
apt:
packages: &common_packages
- libgomp1
cache:
directories:
- $HOME/miniconda
env:
global:
- MINICONDA_HOME=$HOME/miniconda
- CONDA_SH=$MINICONDA_HOME/etc/profile.d/conda.sh
branches:
only:
- /^conda-.*$/
before_install:
- if [[ ! -f $CONDA_SH ]]; then
rm -rf $MINICONDA_HOME;
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
bash miniconda.sh -b -p $MINICONDA_HOME;
source $CONDA_SH;
else
source $CONDA_SH;
fi;
- conda config --add channels conda-forge;
- conda config --set channel_priority strict --set always_yes yes;
- conda update --name base --channel defaults --quiet conda;
- conda config --prepend envs_dirs $HOME/conda_envs;
install:
- conda env create -q --file $TRAVIS_BUILD_DIR/conda/environment.yml
- conda clean -ypa
before_script:
- source $CONDA_SH
- conda env list
- conda activate isnoda
- cd $TRAVIS_BUILD_DIR/
script:
- $TRAVIS_BUILD_DIR/conda/install_isnoda.sh
- inicheck -f $HOME/isnoda/awsm/awsm/tests/basins/Lakes/config.ini -m awsm