-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
42 lines (37 loc) · 1.01 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
sudo: false
dist: trusty
language: python
cache:
pip: true
apt: true
matrix:
fast_finish: true
include:
- os: linux
python: 2.7
env: TF_VERSION=1.1.0 TF_TYPE=release
- os: linux
python: 3.5
env: TF_VERSION=1.1.0 TF_TYPE=release
- os: linux
python: 2.7
env: TF_VERSION=1.head TF_TYPE=nightly
- os: linux
python: 3.5
env: TF_VERSION=1.head TF_TYPE=nightly
allow_failures:
- env: TF_VERSION=1.head TF_TYPE=nightly
install:
- pip install -U pip # the pip version on travis is too old
- pip install flake8 # the pip version on travis is too old
- .travis/.install_tf.sh # use my script provided for tensorpack
before_script:
- flake8 --version
- python -c "import tensorflow as tf; print('TensorFlow '+ tf.__version__)"
script:
- flake8 .
- .travis/.install_tf.sh
- .travis/.install_dependencies.sh
- export PKG_CONFIG_PATH=$HOME/libs/libzmq/dist/lib/pkgconfig/:$PKG_CONFIG_PATH
- export PKG_CONFIG_PATH=$HOME/libs/msgpack-c/dist/lib/pkgconfig/:$PKG_CONFIG_PATH
- .travis/compile.sh