forked from tensorflow/addons
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (43 loc) · 1.22 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
dist: xenial
language: minimal
git:
quiet: true
services:
- docker
install:
- curl https://bootstrap.pypa.io/get-pip.py | sudo -H python
- sudo -H python -m pip install -q -U twine --ignore-installed six
- twine --version
stages:
- test
- build
jobs:
include:
# Linux Tests
- stage: test
name: "Test on Ubuntu 14.04"
script:
- docker run --rm -v ${PWD}:/addons -w /addons tensorflow/tensorflow:nightly-custom-op make unit-test
# Linux Builds
- stage: build
name: "Build on Ubuntu 14.04 for Python 2.7 3.4 3.5 3.6"
script:
- docker run --rm -v $PWD:/addons -w /addons tensorflow/tensorflow:nightly-custom-op tools/ci_build/builds/release_linux.sh
after_success:
- twine upload -u $PYPI_USER -p $PYPI_PW wheelhouse/*.whl
# MacOS Builds
- stage: build
name: "Build on MacOS for Python 2.7 3.4 3.5 3.6"
os: osx
osx_image: xcode10
script:
- bash -x -e tools/ci_build/builds/release_macos.sh
after_success:
- twine upload -u $PYPI_USER -p $PYPI_PW wheelhouse/*.whl
notifications:
email:
recipients:
on_success: never
on_failure: always