-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
46 lines (46 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
language: generic
os:
- osx
- linux
env:
matrix:
- CONDA_ENV=3.7
- CONDA_ENV=3.6
- CONDA_ENV=2.7
global:
- MPLBACKEND=Agg
sudo: false
before_install:
- |
if [[ $TRAVIS_OS_NAME == "osx" ]]; then
brew remove --force $(brew list)
brew cleanup -s
rm -rf $(brew --cache)
fi
- |
mkdir -p $HOME/.matplotlib
echo "backend: Agg" > $HOME/.matplotlib/matplotlibrc
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
curl https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh > $HOME/miniconda.sh
conda_file=environment_osx.yml
else
curl https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh > $HOME/miniconda.sh
conda_file=environment_linux.yml
fi
- bash $HOME/miniconda.sh -b -p $HOME/anaconda
- export PATH="$HOME/anaconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda env create -f $conda_file python=$CONDA_ENV
- source activate dakota_clinic
- conda env export --no-builds
install:
- make install
script:
- pip install pytest
- travis_wait 50 pytest -vvv
- cd analysis
- cat dakota_03_ego.log
- cat dakota_03_ego.out
- cat dakota_03_ego.dat