forked from rwth-i6/returnn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
102 lines (95 loc) · 3.11 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# https://docs.travis-ci.com/user/getting-started/
language: python
python:
- "3.6"
- "2.7"
# https://docs.travis-ci.com/user/reference/overview/
# https://blog.travis-ci.com/2017-04-17-precise-EOL
# Also needed for TensorFlow for glibc 2.7.
dist: trusty
sudo: false # should use the faster container based image
# command to install dependencies
# quiet (-qq) to keep log smaller
# |cat to avoid interactive banner (which blows up the log)
# Note: pip is from a virtualenv, thus --user does not seem to work.
# pip2 without --user (if pip is PY3) also does not work because we don't have root access.
# pip2 with --user (if pip is PY2) does not work, because it the same as pip.
install:
- pip2 install -qq --upgrade pip setuptools wheel six | cat # Python2<->Python3
- pip2 install --user -r requirements.txt | cat # need for Python2<->Python3 communication tests
- pip2 install --user typing | cat
- pip install typing | cat # needed for Python 2 in some cases
- pip install -qq --upgrade pip setuptools wheel
- pip install --upgrade numpy scipy | cat # TF usually needs the latest Numpy
- pip install -r requirements.txt | cat
- pip install $TF_PACKAGE | cat
- pip install theano==0.9 | cat
- pip install -qq nose
- echo "[global]" >> ~/.theanorc
- echo "device = cpu" >> ~/.theanorc
- echo "floatX = float32" >> ~/.theanorc
- python --version
- python -c "import numpy; print(numpy.version.full_version)"
- python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"
- python -c "import theano; print(theano.__version__)"
# https://docs.travis-ci.com/user/environment-variables/
# TF tests first, because more relevant (for me), then ordered by alphabet
env:
global:
- TF_PACKAGE=tensorflow
matrix:
- TEST=TFEngine
- TEST=TFNativeOp
- TEST=TFNativeOp TF_PACKAGE=tensorflow==1.8.0
- TEST=TFNativeOp TF_PACKAGE=tensorflow==1.4.0
- TEST=TFNetworkLayer
- TEST=TFNetworkRecLayer
- TEST=TFNetworkSigProcLayer
- TEST=TFUpdater
- TEST=TFUtil
- TEST=Config
- TEST=Dataset
- TEST=demos
- TEST=Device
- TEST=EngineTask
- TEST=EngineUtil
- TEST=fork_exec
- TEST=Fsa
- TEST=GeneratingDataset
- TEST=hdf_dump
- TEST=HDFDataset
- TEST=LearningRateControl
- TEST=Log
- TEST=multi_target
- TEST=MultiBatchBeam
- TEST=NativeOp
- TEST=NativeOp_chunk
- TEST=NativeOp_sparse
- TEST=NativeOp_subtensor_batched_index
- TEST=Network
- TEST=NetworkBaseLayer
- TEST=NetworkDescription
- TEST=NetworkLayer
- TEST=Pretrain
- TEST=SprintDataset
- TEST=SprintInterface
- TEST=TaskSystem
- TEST=TaskSystem_SharedMem
- TEST=TheanoUtil
- TEST=Util
matrix:
include:
- env: RUN=tests/pylint.py
- env: RUN=tests/pycharm-inspect.py
allow_failures:
- env: RUN=tests/pylint.py
- env: RUN=tests/pycharm-inspect.py
fast_finish: true
# command to run tests
script:
- 'if [[ ! -z "$TEST" ]]; then nosetests tests/test_$TEST.py; fi'
- 'if [[ ! -z "$RUN" ]]; then $RUN; fi'
# https://docs.travis-ci.com/user/notifications
# no notifications
notifications:
email: false