Skip to content

Commit 7ce3837

Browse files
trying to fix .travis.yml
switching when we change directory fixing path needed rtd theme need pandoc removing print statement
1 parent b6dd8ae commit 7ce3837

File tree

3 files changed

+16
-14
lines changed

3 files changed

+16
-14
lines changed

.travis.yml

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ dist: trusty
33
python:
44
- 2.7
55
- 3.5
6+
- 3.6
67
notifications:
78
email: false
89
addons:
@@ -71,7 +72,6 @@ matrix:
7172
- DEPENDS=
7273
- python: 3.6
7374
sudo: true
74-
dist: trusty
7575
env:
7676
- DOC_BUILD=1
7777

@@ -90,14 +90,6 @@ before_install:
9090

9191
install:
9292
# Install selectinf
93-
- |
94-
echo "backend : agg" > matplotlibrc
95-
if [ "$DOC_BUILD" ]; then # doc build
96-
pip install -r doc-requirements.txt
97-
cd doc
98-
jupytext --sync source/*/*.ipynb
99-
# Build without the API documentation, for the doctests
100-
make html
10193
- if [ "$RUN_R_TESTS" ]; then
10294
sudo apt-get install -y r-base r-base-dev r-cran-devtools r-cran-rcpp;
10395
pip install rpy2 statsmodels -c constraints.txt ;
@@ -121,11 +113,22 @@ script:
121113
# No figure windows for mpl; quote to hide : from travis-ci yaml parsing
122114
- pip install -r requirements.txt -c constraints.txt; # older rpy2
123115
# Change into an innocuous directory and find tests from installation
124-
- mkdir for_testing
125-
- cd for_testing
126116
- 'echo "backend : agg" > matplotlibrc'
127-
117+
- |
118+
if [ "$DOC_BUILD" ]; then
119+
pip install -r doc-requirements.txt;
120+
cd doc;
121+
jupytext --sync source/*/*.ipynb;
122+
sudo apt-get install pandoc;
123+
make html;
124+
fi
125+
#
126+
# # Build the htmlwithout the API documentation, for the doctests
127+
#
128+
# fi
128129
# Doctests only on platforms that have compatible fp output
130+
- mkdir for_testing
131+
- cd for_testing
129132
- if [ `uname` == "Darwin" ] ||
130133
[ "${TRAVIS_PYTHON_VERSION:0:1}" == "3" ]; then
131134
DOCTEST_ARGS="--with-doctest";

doc-requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ tensorflow
1212
keras
1313
nbsphinx
1414
jupytext
15+
sphinx_rtd_theme

selectinf/learning/fitters.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ def gbm_fit_sk(T, Y, **params):
88

99
fitfns = []
1010
for j in range(Y.shape[1]):
11-
print('variable %d' % (j+1,))
1211
y = Y[:,j].astype(np.int)
1312
clf = ensemble.GradientBoostingClassifier(**params)
1413
clf.fit(T, y)
@@ -24,7 +23,6 @@ def random_forest_fit_sk(T, Y, **params):
2423

2524
fitfns = []
2625
for j in range(Y.shape[1]):
27-
print('variable %d' % (j+1,))
2826
y = Y[:,j].astype(np.int)
2927
clf = ensemble.RandomForestClassifier(**params)
3028
clf.fit(T, y)

0 commit comments

Comments
 (0)