forked from shenweichen/DeepCTR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
70 lines (62 loc) · 1.47 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
#sudo: required
#dist: trusty xenial
language: python
python:
- "2.7" #time out
#- "3.4"
- "3.5"
- "3.6"
#- "3.7"
env:
# - TF_VERSION=1.13.1
# - TF_VERSION=1.12.2
- TF_VERSION=1.4.0
#Not Support- TF_VERSION=1.7.0
#Not Support- TF_VERSION=1.7.1
#Not Support- TF_VERSION=1.8.0
#- TF_VERSION=1.8.0
# - TF_VERSION=1.11.0
#- TF_VERSION=1.6.0
- TF_VERSION=2.0.0b1
#- TF_VERSION=1.13.2
- TF_VERSION=1.14.0
matrix:
allow_failures:
- python: "2.7"
env: TF_VERSION=1.6.0 # to speed up
- python: "2.7"
env: TF_VERSION=2.0.0b1
- python: "3.4"
- python: "3.5"
- python: "3.7"
- env: TF_VERSION=1.5.0 #local is ok,but sometimes CI is failed
- env: TF_VERSION=1.7.0
- env: TF_VERSION=1.7.1
- env: TF_VERSION=1.8.0
- env: TF_VERSION=1.12.0 # too slow
- env: TF_VERSION=1.13.1 # too slow
- env: TF_VERSION=1.13.2 # too slow
- env: TF_VERSION=1.14.0 # too slow
fast_finish: true
cache: pip
# command to install dependencies
install:
- pip install -q pytest-cov==2.4.0 #>=2.4.0,<2.6
- pip install -q python-coveralls
- pip install -q codacy-coverage
- pip install -q tensorflow==$TF_VERSION
- pip install -q pandas
- pip install -q packaging
- pip install -e .
# command to run tests
script:
- pytest --cov=deepctr
notifications:
recipients:
on_success: change
on_failure: change
after_success:
- coveralls
- coverage xml
- python-codacy-coverage -r coverage.xml