forked from tensorflow/adanet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
73 lines (70 loc) · 2.3 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
sudo: required
dist: xenial
language: python
git:
depth: 10
quiet: true
python:
- "3.6"
env:
global:
- CODECOV_TOKEN="0d2c482b-f42c-4d4c-b092-cb628ad20857"
- BAZEL_VERSION=0.20.0
- COVERAGE_PROCESS_START=$PWD/.coveragerc
- NODE_TOTAL=8 # Total machines running per test setting
matrix:
# We test against recent versions of TensorFlow and tf-nightly.
- TF_VERSION="tf-nightly" NODE_INDEX=0
- TF_VERSION="tf-nightly" NODE_INDEX=1
- TF_VERSION="tf-nightly" NODE_INDEX=2
- TF_VERSION="tf-nightly" NODE_INDEX=3
- TF_VERSION="tf-nightly" NODE_INDEX=4
- TF_VERSION="tf-nightly" NODE_INDEX=5
- TF_VERSION="tf-nightly" NODE_INDEX=6
- TF_VERSION="tf-nightly" NODE_INDEX=7
- TF_VERSION="2.1" NODE_INDEX=0
- TF_VERSION="2.1" NODE_INDEX=1
- TF_VERSION="2.1" NODE_INDEX=2
- TF_VERSION="2.1" NODE_INDEX=3
- TF_VERSION="2.1" NODE_INDEX=4
- TF_VERSION="2.1" NODE_INDEX=5
- TF_VERSION="2.1" NODE_INDEX=6
- TF_VERSION="2.1" NODE_INDEX=7
matrix:
allow_failures:
- python: "3.6"
env: TF_VERSION="tf-nightly" NODE_INDEX=0
- python: "3.6"
env: TF_VERSION="tf-nightly" NODE_INDEX=1
- python: "3.6"
env: TF_VERSION="tf-nightly" NODE_INDEX=2
- python: "3.6"
env: TF_VERSION="tf-nightly" NODE_INDEX=3
- python: "3.6"
env: TF_VERSION="tf-nightly" NODE_INDEX=4
- python: "3.6"
env: TF_VERSION="tf-nightly" NODE_INDEX=5
- python: "3.6"
env: TF_VERSION="tf-nightly" NODE_INDEX=6
- python: "3.6"
env: TF_VERSION="tf-nightly" NODE_INDEX=7
before_install:
- sudo apt-get -y install pkg-config zip g++ zlib1g-dev unzip
- wget https://github.com/bazelbuild/bazel/releases/download/"$BAZEL_VERSION"/bazel-"$BAZEL_VERSION"-installer-linux-x86_64.sh
- chmod +x bazel-"$BAZEL_VERSION"-installer-linux-x86_64.sh
- ./bazel-"$BAZEL_VERSION"-installer-linux-x86_64.sh --user
addons:
apt:
update: true
install:
- pip install -r requirements.txt
- pip install numpy --upgrade
- pip install coverage-enable-subprocess
- ./oss_scripts/oss_pip_install.sh
script:
- NOSE_EXCLUDE='.*workers.*|.*nasnet.*.py' nosetests
- cat /tmp/absl_testing/**/*.txt || true # Don't error if file does not exist.
after_success:
# Install codecov for tracking coverage over time.
- pip install codecov
- codecov