forked from tensorlayer/TensorLayer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
100 lines (78 loc) · 3.71 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# https://docs.travis-ci.com/user/languages/python/
language: python
addons:
apt:
update: false
branches:
only:
- master
- /\d+\.\d+(\.\d+)?(\S*)?$/
python:
- "2.7"
- "3.5"
- "3.6"
env:
# Backward Compatibility in insured for release less than 1 year old.
# https://pypi.org/project/tensorflow/#history
matrix:
- _TF_VERSION=1.9.0rc2 # Remove on Apr 28, 2019
- _TF_VERSION=1.8.0 # Remove on Apr 28, 2019
- _TF_VERSION=1.7.1 # Remove on May 08, 2019
- _TF_VERSION=1.7.0 # Remove on Mar 29, 2019
- _TF_VERSION=1.6.0 # Remove on Mar 01, 2019
# - _TF_VERSION=1.5.1 # Remove on Mar 20, 2019
# - _TF_VERSION=1.5.0 # Remove on Jan 26, 2019
# - _TF_VERSION=1.4.1 # Remove on Dec 08, 2018
# - _TF_VERSION=1.4.0 # Remove on Nov 01, 2018
# - _TF_VERSION=1.3.0 # Remove on Aug 16, 2018
# - _TF_VERSION=1.2.1 # Remove on Jun 30, 2018
global:
- PYPI_USER='jonathandekhtiar'
# See https://docs.travis-ci.com/user/encryption-keys/ for more details about secure keys.
### == PYPI_PASSWORD === ###
## To update: travis encrypt PYPI_PASSWORD=################################
- secure: "fGIRDjfzzP9DhdDshgh/+bWTZ5Y0jTD4aR+gsT1TyAyc6N4f3RRlx70xZZwYMdQ+XC3no/q4na8UzhhuSM0hCCM1EaQ78WF1c6+FBScf4vYGoYgyJ1am+4gu54JXt+4f0bd+s6jyYBafJALUJp5fqHoxCUXqzjrOqGBBU2+JbL71Aaj8yhQuK0VPPABexsQPQM312Gvzg7hy9dh63J0Q02PqINn+CTcwq3gLH9Oua58zWQ7TaT0cdy/hzAc6Yxy3ajo2W5NU+nKROaaG9W57sa7K/v1dshDFFFST2DdGxm9i7vvfPsq0OWM6qWLsec/4mXJWsmai2ygZEv+IhaABb10c7spd2nl7oHFj2UGmldtO5W0zLb1KkCPWDPilFt3lvHM+OS/YaibquL5/5+yGj0LsRJrVyWoMBA8idcQeH4dvTAfySeFpO42VNwW5ez9JaEOh7bBp7naAA8c/fbNJJ5YEW4MEmOZ9dwFTohNNDiN+oITSrcXBS+jukbfTOmtCeYNUker+4G2YwII9cxHXbZeIMrTq9AqTfOVTAYCFaFHKbpSc1+HCyF7n5ZfNC00kBaw93XUnLRzSNKe5Ir791momYL8HecMN3OAI77bz26/pHSfzJnLntq9qx2nLBTnqDuSq5/pHvdZ8hyt+hTDxvF7HJIVMhbnkjoLPxmn4k/I="
### === GITHUB_PERSONAL_TOKEN === ###
## To update: travis encrypt GITHUB_PERSONAL_TOKEN=################################
- secure: "kMxg4WfTwhnYMD7WjYk71vgw7XlShPpANauKzfTL6oawDrpQRkBUai4uQwiL3kXVBuVv9rKKKZxxnyAm05iB5wGasPDhlFA1DPF0IbyU3pwQKlw2Xo5qtHdgxBnbms6JJ9z5b+hHCVg+LXYYeUw5qG01Osg5Ue6j1g2juQQHCod00FNuo3fe8ah/Y10Rem6CigH8ofosCrTvN2w1GaetJwVehRYf8JkPC6vQ+Yk8IIjHn2CaVJALbhuchVblxwH0NXXRen915BVBwWRQtsrvEVMXKu7A8sMHmvPz1u3rhXQfjpF2KeVOfy1ZnyiHcLE2HgAPuAGh4kxZAAA8ovmcaCbv8m64bm72BrQApSbt6OEtR9L1UeUwdEgi54FH1XFOHQ9dA6CpiGCyk3wAJZqO0/PkNYVLfb4gPLvnvBRwYBaPgUPvVNhidFu/oODENZmcf8g9ChtuC1GT70EYlVwhgDGqUY7/USZCEvIPe81UToqtIKgcgA+Is51XindumJVMiqTsjgdqeC/wZcw+y37TAjIvvXbtYxeqIKv9zh1JuZppqUhnf+OhI+HHFaY4iu7lQTs3C0WmoLskZAp9srwRtifnVFFkdYzngmPaSjWyko2qiS0cTdFJQB/ljqmnJdksacbv5OOa0Q4qZef/hW774nVx105FlkAIk70D2b5l2pA="
matrix:
include:
- python: 3.6
env:
- _DOC_AND_YAPF_TEST=True
install:
- if [[ -v _DOC_AND_YAPF_TEST ]]; then pip install tensorflow; else pip install tensorflow==$_TF_VERSION; fi
- pip install -e .[all]
script:
# units test
# https://docs.pytest.org/en/latest/
- rm setup.cfg
- if [[ -v _DOC_AND_YAPF_TEST ]]; then mv setup.travis_doc.cfg setup.cfg; else mv setup.travis.cfg setup.cfg; fi
- pytest
before_deploy:
- python setup.py sdist
- python setup.py bdist_wheel
- python setup.py bdist_wheel --universal
- python setup.py egg_info
deploy:
# Documentation: https://docs.travis-ci.com/user/deployment/pypi/
- provider: pypi
user: '$PYPI_USER'
password: '$PYPI_PASSWORD'
skip_cleanup: true
on:
tags: true
python: '3.6'
condition: '$_TF_VERSION = 1.8.0'
# Documentation: https://docs.travis-ci.com/user/deployment/releases/
- provider: releases
file:
- dist/*
- tensorlayer.egg-info/PKG-INFO
file_glob: true
skip_cleanup: true
api_key: '$GITHUB_PERSONAL_TOKEN'
on:
tags: true
python: '3.6'
condition: '$_TF_VERSION = 1.8.0'