/
.travis.yml
33 lines (29 loc) · 1.52 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
dist: xenial
language: python
python: 3.7
install:
- pip install -r requirements.txt
# Build steps
# - do a basic test, defaulting to use "config.xml"
script:
- cd tests
# Test with multiple config files (default config.xml = biorobots)
- python ../xml2jupyter.py
- if [[ `diff user_params.py user_params_baseline_default.py` ]]; then >&2 echo "Fail"; exit 1; fi
- python ../xml2jupyter.py ../config_samples/config_heterogeneity.xml
- if [[ `diff user_params.py user_params_baseline_hetero.py` ]]; then >&2 echo "Fail"; exit 1; fi
- python ../xml2jupyter.py ../config_samples/config_cancer_biorobots.xml
- if [[ `diff user_params.py user_params_baseline_cancer_biobots.py` ]]; then >&2 echo "Fail"; exit 1; fi
- python ../xml2jupyter.py ../config_samples/config_cancer_immune.xml
- if [[ `diff user_params.py user_params_baseline_cancer_immune.py` ]]; then >&2 echo "Fail"; exit 1; fi
- python ../xml2jupyter.py ../config_samples/config_biorobots.xml red green
- if [[ `diff user_params.py user_params_baseline_cancer_biobots_red_green.py` ]]; then >&2 echo "Fail"; exit 1; fi
# Test with a supplied GUI script; the GUI script is edited in-place to provide the config filename.
# No baseline test since as the GUI script itself is edited; just verify xml2jupyter runs OK.
- python ../xml2jupyter.py ../config_samples/config_heterogeneity.xml mygui_test.py
notifications:
email:
recipients:
- randy.heiland@gmail.com
on_success: always # default: change (always, never)
on_failure: always # default: always