forked from tensorflow/tensor2tensor
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
45 lines (44 loc) · 1.19 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
sudo: required
language: python
git:
depth: 10
quiet: true
services:
- docker
python:
- "2.7"
- "3.6"
env:
global:
- T2T_PROBLEM=algorithmic_reverse_binary40_test
- T2T_DATA_DIR=/tmp/t2t-data
- T2T_TRAIN_DIR=/tmp/t2t-train
- TF_LATEST="1.11.*"
# This is necessary to have gsutil work with Python 2.7
- BOTO_CONFIG=/dev/null
matrix:
# We test against recent versions of TensorFlow and tf-nightly.
# If updating, also update TF_LATEST above
- TF_VERSION="1.10.*"
- TF_VERSION="1.11.*"
- TF_VERSION="tf-nightly"
matrix:
exclude:
# We test against all versions in Python 2 but only the latest in Python 3
- python: "3.6"
env: TF_VERSION="1.10.*"
- python: "3.6"
env: TF_VERSION="tf-nightly"
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq libhdf5-dev
install:
- ./oss_scripts/oss_pip_install.sh
script:
- ./oss_scripts/oss_tests.sh
- ./oss_scripts/oss_integration_test.sh
# Conditional commands should each be in a separate block to get proper
# errors on Travis.
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]] && [[ "$TF_VERSION" == "tf-nightly" ]]; then
pylint -j 2 tensor2tensor;
fi