forked from kk7nc/RMDL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
63 lines (56 loc) · 2.13 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
sudo: required
dist: trusty
language: python
matrix:
include:
- python: 3.6
env: KERAS_BACKEND=tensorflow TEST_MODE=WOS
- python: 3.5
env: KERAS_BACKEND=tensorflow TEST_MODE=WOS
- python: 3.6
env: KERAS_BACKEND=tensorflow TEST_MODE=MNIST
- python: 3.5
env: KERAS_BACKEND=tensorflow TEST_MODE=MNIST
- python: 3.6
env: KERAS_BACKEND=tensorflow TEST_MODE=Reuters21578
- python: 3.5
env: KERAS_BACKEND=tensorflow TEST_MODE=Reuters21578
install:
# code below is taken from http://conda.pydata.org/docs/travis.html
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- "pip install -U pip"
- "export PYTHONPATH=$PYTHONPATH:$(pwd)"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
# Useful for debugging any issues with conda
- conda info -a
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION pytest pandas
- source activate test-environment
- pip install --only-binary=numpy,scipy numpy nose scipy matplotlib h5py theano
- conda install mkl mkl-service
# set library path
- export LD_LIBRARY_PATH=$HOME/miniconda/envs/test-environment/lib/:$LD_LIBRARY_PATH
# install pydot for visualization tests
- conda install pydot graphviz
before_script:
- pip install -r requirements.txt
# command to run tests
script:
- if [[ "$TEST_MODE" == "20NewsGroup" ]]; then
python Examples/_20NewsGroup.py;
elif [[ "$TEST_MODE" == "CIFAR" ]]; then
python Examples/CIFAR.py;
elif [[ "$TEST_MODE" == "IMDB" ]]; then
python Examples/IMDB.py;
elif [[ "$TEST_MODE" == "ORL" ]]; then
python Examples/ORL.py;
elif [[ "$TEST_MODE" == "MNIST" ]]; then
python Examples/MNIST.py;
elif [[ "$TEST_MODE" == "Reuters21578" ]]; then
python Examples/Reuters21578.py;
elif [[ "$TEST_MODE" == "WOS" ]]; then
python Examples/WOS5736.py;
fi