forked from hunkim/DeepLearningZeroToAll
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
21 lines (20 loc) · 1006 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# 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 # change range to 1 for quick testing
- sed -i -- 's/plt.plot/#plt.plot/g' lab-*.py # change range to 1 for quick testing
- 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 2 python > /dev/null
- for f in lab-*.py; do python "$f" > /dev/null; done
- pytest