forked from usgs/pestpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
97 lines (82 loc) · 2.94 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
88
89
90
91
92
93
94
95
96
97
language: cpp
dist: bionic
os: linux
git:
depth: 1
services:
- xvfb
compiler:
- gcc
jobs:
include:
- name: "pestpp-opt tests"
env:
TEST_REPO="https://github.com/usgs/pestpp-opt_benchmarks"
TEST_SCRIPT="opt_test.py"
- name: "pestpp-ies tests part 1"
env:
TEST_REPO="https://github.com/usgs/pestpp-ies_benchmarks"
TEST_SCRIPT="ies_test_part1.py"
- name: "pestpp-ies tests part 2"
env:
TEST_REPO="https://github.com/usgs/pestpp-ies_benchmarks"
TEST_SCRIPT="ies_test_part2.py"
- name: "pestpp-ies tests part 3"
env:
TEST_REPO="https://github.com/usgs/pestpp-ies_benchmarks"
TEST_SCRIPT="ies_test_part3.py"
- name: "pestpp-ies tests part 4"
env:
TEST_REPO="https://github.com/usgs/pestpp-ies_benchmarks"
TEST_SCRIPT="ies_test_part4.py"
- name: "pestpp-ies tests baseline"
env:
TEST_REPO="https://github.com/usgs/pestpp-ies_benchmarks"
TEST_SCRIPT="ies_test_base.py"
- name: "pestpp-glm tests baseline"
env:
TEST_REPO="https://github.com/usgs/pestpp-glm_benchmarks"
TEST_SCRIPT="glm_test_base.py"
- name: "basic tests"
env:
TEST_REPO="https://github.com/usgs/pestpp"
TEST_SCRIPT="basic_tests.py"
TEST_DIR="benchmarks"
before_script:
- mkdir build && cd build
- cmake -DCMAKE_BUILD_TYPE=Release ..
- make -j2
# executable targets are automatically installed into bin
- cd ..
- wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- source "$HOME/miniconda/etc/profile.d/conda.sh"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda create -q -n ci python=3.6 pip numpy scipy pandas matplotlib nose
- conda activate ci
- git clone --depth 1 --single-branch -b develop https://github.com/modflowpy/flopy.git
- pip install ./flopy
- git clone --depth 1 --single-branch -b develop https://github.com/jtwhite79/pyemu.git
- pip install ./pyemu
script:
- git clone --depth 1 -b master $TEST_REPO
- if [ ! -n "${TEST_DIR+set}" ]; then export TEST_DIR=$(basename $TEST_REPO); fi
- cd $TEST_DIR
- export PATH="$TRAVIS_BUILD_DIR/$TEST_DIR/test_bin/linux:$PATH"
# Ensure repo name is named 'pestpp' for tests
- if [ ! -d ../../pestpp ]; then ln -sr ../../$(basename $TRAVIS_REPO_SLUG) ../../pestpp; fi
- 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:
on_success: always
on_failure: always