forked from jwhite-usgs/pestpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
87 lines (78 loc) · 2.86 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
sudo: false
dist: trusty
language: python
python:
- "3.6"
cache:
pip: true
apt: true
directories:
- $HOME/.cache/pip
- $HOME/.local
matrix:
include:
- name: "pestpp-opt tests"
env: TEST_REPO="https://github.com/usgs/pestpp-opt_benchmarks" TEST_SCRIPT="opt_test.py" TEST_DIR="pestpp-opt_benchmarks"
- name: "pestpp-ies tests part 1"
env: TEST_REPO="https://github.com/usgs/pestpp-ies_benchmarks" TEST_SCRIPT="ies_test_part1.py" TEST_DIR="pestpp-ies_benchmarks"
- name: "pestpp-ies tests part 2"
env: TEST_REPO="https://github.com/usgs/pestpp-ies_benchmarks" TEST_SCRIPT="ies_test_part2.py" TEST_DIR="pestpp-ies_benchmarks"
- name: "pestpp-ies tests part 3"
env: TEST_REPO="https://github.com/usgs/pestpp-ies_benchmarks" TEST_SCRIPT="ies_test_part3.py" TEST_DIR="pestpp-ies_benchmarks"
- name: "pestpp-ies tests part 4"
env: TEST_REPO="https://github.com/usgs/pestpp-ies_benchmarks" TEST_SCRIPT="ies_test_part4.py" TEST_DIR="pestpp-ies_benchmarks"
- name: "pestpp-ies tests baseline"
env: TEST_REPO="https://github.com/usgs/pestpp-ies_benchmarks" TEST_SCRIPT="ies_test_base.py" TEST_DIR="pestpp-ies_benchmarks"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-6
- gfortran-6
- liblapack-dev
git:
depth: 1
env:
global:
- MAKEFLAGS="-j 2"
before_script:
- cd src
- rm -r -f ../bin/linux/
- make clean
- COMPILER=gcc6 CXX=g++-6 FC=gfortran-6 STATIC=no make install
- cd ..
- wget http://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"
- conda update --yes conda
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- conda install --yes python=$TRAVIS_PYTHON_VERSION pip numpy scipy pandas matplotlib nose
- git clone --depth 1 --single-branch -b develop https://github.com/modflowpy/flopy.git
- cd flopy
- python setup.py install
- cd ..
- git clone --depth 1 --single-branch -b develop https://github.com/jtwhite79/pyemu.git
- cd pyemu
- python setup.py install
- cd ..
- export PYTHONPATH=$PYTHONPATH:.
- export PATH="./test_bin/linux:../test_bin/linux:../../test_bin/linux:$PATH"
- nosetests -v -w ./benchmarks basic_tests.py
script:
- git clone -b master --depth 1 $TEST_REPO
- cd $TEST_DIR
- nosetests -v $TEST_SCRIPT
# after_success:
# - chmod +x trigger-travis.sh
# - ./trigger-travis.sh jtwhite79 pestpp-opt_benchmarks $TRAVIS_ACCESS_TOKEN
# - ./trigger-travis.sh jtwhite79 pestpp-ies_benchmarks $TRAVIS_ACCESS_TOKEN
# - ./trigger-travis.sh jtwhite79 pestpp-ies_benchmarks2 $TRAVIS_ACCESS_TOKEN
# - ./trigger-travis.sh jtwhite79 pestpp-ies_benchmarks_base $TRAVIS_ACCESS_TOKEN
notifications:
email:
recipents:
- jtwhite1000@gmail.com
on_success: always
on_failure: always