17
17
env :
18
18
global :
19
19
- DEPENDS="numpy scipy sympy matplotlib nibabel"
20
- - INSTALL_TYPE="setup "
20
+ - INSTALL_TYPE="pip "
21
21
python :
22
22
- 3.4
23
23
- 3.5
@@ -50,7 +50,12 @@ matrix:
50
50
env :
51
51
- INSTALL_TYPE=requirements
52
52
- DEPENDS=
53
- - python : 3.6
53
+ - python : 3.5
54
+ env :
55
+ - INSTALL_TYPE=setup
56
+ - python : 3.5
57
+ env :
58
+ - DOC_BUILD=1
54
59
55
60
before_install :
56
61
- source tools/travis_tools.sh
@@ -69,11 +74,14 @@ before_install:
69
74
pip install coverage;
70
75
pip install coveralls codecov;
71
76
fi
77
+
72
78
# command to install dependencies
73
79
# e.g. pip install -r requirements.txt # --use-mirrors
74
80
install :
75
81
- |
76
- if [ "$INSTALL_TYPE" == "setup" ]; then
82
+ if [ "$INSTALL_TYPE" == "pip" ]; then
83
+ pip install .
84
+ elif [ "$INSTALL_TYPE" == "setup" ]; then
77
85
python setup.py install
78
86
elif [ "$INSTALL_TYPE" == "sdist" ]; then
79
87
python setup_egg.py egg_info # check egg_info while we're here
@@ -87,15 +95,23 @@ install:
87
95
pip install -r requirements.txt
88
96
python setup.py install
89
97
fi
90
- # command to run tests, e.g. python setup.py test
98
+
99
+ # command to run tests
91
100
script :
92
- # Change into an innocuous directory and find tests from installation
93
- - mkdir for_testing
94
- - cd for_testing
95
- - if [ "${COVERAGE}" == "1" ]; then
96
- cp ../.coveragerc .;
97
- COVER_ARGS="--with-coverage --cover-package nipy";
101
+ - |
102
+ if [ "$DOC_BUILD" ]; then # doc build
103
+ pip install -r doc-requirements.txt
104
+ make html-stamp pdf-stamp
105
+ else
106
+ # Change into an innocuous directory and find tests from installation
107
+ mkdir for_testing
108
+ cd for_testing
109
+ if [ "${COVERAGE}" == "1" ]; then
110
+ cp ../.coveragerc .
111
+ COVER_ARGS="--with-coverage --cover-package nipy"
112
+ fi
113
+ $PYTHON ../tools/nipnost --verbosity=3 $COVER_ARGS nipy
98
114
fi
99
- - $PYTHON ../tools/nipnost --verbosity=3 $COVER_ARGS nipy
115
+
100
116
after_success :
101
117
- if [ "${COVERAGE}" == "1" ]; then coveralls; codecov; fi
0 commit comments