-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshippable.yml
67 lines (59 loc) · 3.42 KB
/
shippable.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
# This following script is modified from .travis.yml for a Linux based system
# This yaml is designed to build using the latest versions (unpinned) of dependencies.
# dev_requirements.txt is removed and dependencies install from `setup.py`
# The lastet python version is also tested
#sudo: false # works w/Docker
language: python
python:
#- "2.7"
- "2.7.12"
- "3.3" # unknown bug at begining of dev cycle; wait for excel writers to be solved
- "3.4"
#- "3.5"
- "3.5.2"
notifications:
email:
on_success: never
on_failure: always
# Setup Miniconda
before_install:
# Do this conditionally since it saves download time if the version is the same.
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
fi
##- chmod +x miniconda.sh # release permissions
- bash miniconda.sh -b -p $HOME/miniconda # assign conda program to HOME dir
- export PATH="$HOME/miniconda/bin:$PATH" # enable `conda` command
- hash -r # reset links
- conda config --set always_yes yes --set changeps1 no # say yes to prompts
- conda update -q conda # update since mini lags behind conda; say "yes"
# Useful for debugging any issues with conda
- conda info -a
install:
# Attempt to pull dependencies only from setup.py
- conda create -q -n test-environment2 python=$TRAVIS_PYTHON_VERSION pip nose numpy matplotlib pandas pytest
- source activate test-environment2
- conda list
- pip install nbval version_information # to run notebook regression test
- pip install -U . # update-deps to latest version if needed; fixed py33 bug that failed in install latet
- pip list
# NOTE: the upgrade flag on pip forces updates on deps; this takes a very long time
script:
- nosetests lamana
- ls -al
# Regression testing of API notebook using nbval plugin
- cd docs
- py.test --nbval demo.ipynb --sanitize-with nbval_sanitize.cfg
# References
# ----- --------- -------------
# (001) Conda and coverage on Travis http://dan-blanchard.roughdraft.io/7045057-quicker-travis-builds-that-rely-on-numpy-and-scipy-using-miniconda
# (002) Travis and conda http://conda.pydata.org/docs/travis.html
# (003) Conda on Travis w/details http://lmjohns3.com/2015/06/using-travis-ci-with-miniconda-scipy-and-nose.html
# (004) Example yaml https://github.com/lmjohns3/theanets/blob/master/.travis.yml
# (005) Example 2 yaml http://samueljackson.me/2015/12/12/better-python-travis-config.html
# (006) Sample codecov w/miniconda https://github.com/JIC-CSB/jicbioimage.illustrate/blob/master/.travis.yml#L31
# (007) Shippable yaml config http://docs.shippable.com/ci_configure/
# (008) Reads Travis-style https://github.com/shippableSamples/sample-python-datastore-appengine/blob/master/shippable.yml
# (009) Flag force install https://stackoverflow.com/questions/22597206/broken-matplotlib-installation-conda-update-did-not-work