forked from tensorflow/adanet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
73 lines (69 loc) · 2.24 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:
- "2.7"
- "3.6"
env:
global:
- CODECOV_TOKEN="0d2c482b-f42c-4d4c-b092-cb628ad20857"
- BAZEL_VERSION=0.20.0
- COVERAGE_PROCESS_START=$PWD/.coveragerc
matrix:
# We test against recent versions of TensorFlow and tf-nightly.
# Quick test suite.
- TF_VERSION="1.14.*" SUITE="quick"
- TF_VERSION="tf-nightly" SUITE="quick"
- TF_VERSION="2.0.0-beta1" SUITE="quick"
- TF_VERSION="tf-nightly-2.0-preview" SUITE="quick"
# E2E Tests.
- TF_VERSION="1.14.*" SUITE="e2e"
- TF_VERSION="tf-nightly" SUITE="e2e"
- TF_VERSION="2.0.0-beta1" SUITE="e2e"
- TF_VERSION="tf-nightly-2.0-preview" SUITE="e2e"
matrix:
allow_failures:
- python: "2.7"
env: TF_VERSION="2.0.0-beta1" SUITE="quick"
- python: "2.7"
env: TF_VERSION="2.0.0-beta1" SUITE="e2e"
- python: "3.6"
env: TF_VERSION="2.0.0-beta1" SUITE="quick"
- python: "3.6"
env: TF_VERSION="2.0.0-beta1" SUITE="e2e"
- python: "2.7"
env: TF_VERSION="tf-nightly-2.0-preview" SUITE="quick"
- python: "2.7"
env: TF_VERSION="tf-nightly-2.0-preview" SUITE="e2e"
- python: "3.6"
env: TF_VERSION="tf-nightly-2.0-preview" SUITE="quick"
- python: "3.6"
env: TF_VERSION="tf-nightly-2.0-preview" SUITE="e2e"
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:
- |
if [ $SUITE == "e2e" ]; then
NOSE_EXCLUDE='.*workers.*' nosetests adanet/core/estimator_distributed_test.py
else
NOSE_EXCLUDE='.*nasnet.*.py|.*test_distributed_training.*' nosetests
fi
- 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