forked from nlintz/TensorFlow-Tutorials
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
24 lines (24 loc) · 1005 Bytes
/
.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
# code below is taken from https://github.com/fchollet/keras/blob/master/.travis.yml
sudo: required
dist: trusty
language: python
python:
- "2.7"
- "3.4"
# command to install dependencies
install:
- pip install numpy
- pip install matplotlib
# install TensorFlow
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.7.1-cp27-none-linux_x86_64.whl;
elif [[ "$TRAVIS_PYTHON_VERSION" == "3.4" ]]; then
pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.7.1-cp34-none-linux_x86_64.whl;
fi
script:
# run all python files in parallel
# http://stackoverflow.com/questions/5015316/run-all-python-files-in-a-directory
- sed -i -- 's/range(100)/range(1)/g' ?_*.py # change range to 1 for quick testing
- sed -i -- 's/range(10001)/range(1)/g' ?_*.py # change range to 1 for quick testing
- python 3_net.py # run this first to download MNIST file
- ls ?_*.py|xargs -n 1 -P 3 python