forked from scikit-beam/scikit-beam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
56 lines (50 loc) · 1.83 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
language: python
sudo: false
addons:
apt_packages:
- pandoc
env:
global:
- GH_REF: github.com/scikit-beam/scikit-beam.git
- secure: "KzntGlmLDUZlAB8ZiSRBtONJypv4atrnFxl+THCW8kg6YbiODcCxG9cez7mfmh63wpJ54+zeGvgGljeVvjb7bjB2p+4hZy+mLoP9xoE1w5qF4XaQ5YTOYaSQqCeWa5cEIi+854gFX7gOfW5qL+EJf7h3HtmndI15zaU5gOPjSDU="
python:
- 2.7
- 3.4
- 3.5
before_install:
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then wget http://repo.continuum.io/miniconda/Miniconda-3.5.5-Linux-x86_64.sh -O miniconda.sh; else wget http://repo.continuum.io/miniconda/Miniconda3-3.5.5-Linux-x86_64.sh -O miniconda.sh; fi
- chmod +x miniconda.sh
- ./miniconda.sh -b -p /home/travis/mc
- export PATH=/home/travis/mc/bin:$PATH
install:
- export GIT_FULL_HASH=`git rev-parse HEAD`
- conda config --set always_yes true
- conda update conda
- conda config --add channels scikit-xray
- conda create -n testenv pip nose python=$TRAVIS_PYTHON_VERSION numpy scipy scikit-image six coverage cython xraylib lmfit=0.8.3 netcdf4
- source activate testenv
# # need to build_ext -i for the tests so that the .so is local to the source
# # code. We could also setup.py develop, but I'm not sure if that is any
# # better
- python setup.py install build_ext -i
- pip install coveralls
- pip install codecov
script:
- python run_tests.py
- if [ $TRAVIS_PYTHON_VERSION == 3.5 ]; then
conda install sphinx numpydoc ipython jupyter pip matplotlib;
pip install sphinx_bootstrap_theme;
cd ..;
git clone https://github.com/scikit-beam/scikit-beam-examples.git;
cd scikit-beam/doc;
chmod +x build_docs.sh;
./build_docs.sh;
fi;
after_success:
- coveralls
- codecov
- if [ $TRAVIS_BRANCH == 'master' ] && [ $TRAVIS_PULL_REQUEST == 'false' ]; then
cd doc;
chmod +x push_docs.sh;
./push_docs.sh;
fi;