forked from hunkim/DeepLearningZeroToAll
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
25 lines (24 loc) · 1.25 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
# code below is taken from https://github.com/fchollet/keras/blob/master/.travis.yml
sudo: required
dist: trusty
language: python
python: # Only two versions for now
- "2.7"
- "3.5"
# command to install dependencies
# command to install dependencies
install: "pip install -r requirements.txt"
script:
- sed -i -- 's/range(total_batch)/range(1)/g' *lab-*.py # change range to 1 for quick testing
- sed -i -- 's/plt.show/#plt.show/g' *lab-*.py # no plt
- sed -i -- 's/plt.plot/#plt.plot/g' *lab-*.py # no plt
- sed -i -- 's/plt.imshow/#plt.imshow/g' *lab-*.py # no plt
- sed -i -- 's/nb_epoch = 12/nb_epoch = 1/g' *lab-*.py # change range to 1 for quick testing
- sed -i -- 's/plot(/# plot (/g' *lab-*.py # change range to 1 for quick testing
- sed -i -- 's/from keras.utils.visualize_util import plot/#/g' *lab-*.py
- python lab-07-2-learning_rate_and_evaluation.py # run this first to download the MNIST file
# run all python files in parallel, http://stackoverflow.com/questions/5015316
# The log length has exceeded the limit of 4 MB (this usually means that the test suite is raising the same exception over and over).
#- ls lab-*.py|xargs -n 1 -P 1 python > /dev/null
- for f in lab-*.py; do echo "$f"; python "$f" > /dev/null; done
- pytest