forked from CSBDeep/CSBDeep
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
81 lines (76 loc) · 2.37 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
# As a general rule, the latest release of Keras is compatible with the latest
# release of TensorFlow as well as the previous release of TensorFlow (in most
# cases, it is actually compatible with several prior TF releases, but that is
# not guaranteed).
#
# -- https://github.com/keras-team/keras/issues/10440#issuecomment-397428200
language: python
env:
- TENSORFLOW='tensorflow<2' KERAS='keras'
matrix:
include:
- os: linux
python: 2.7
- os: linux
python: 3.5
- os: linux
python: 3.6
- os: linux
python: 3.7
###########
- os: linux
python: 3.7
env: TENSORFLOW='tensorflow<2' KERAS='keras' ONLY_INSTALL=1
###########
- os: linux
python: 3.6
if: branch = master
env: TENSORFLOW='tensorflow<1.15' KERAS='keras==2.3.0'
- os: linux
python: 3.6
if: branch = master
env: TENSORFLOW='tensorflow<1.14' KERAS='keras==2.2.5'
- os: linux
python: 3.6
if: branch = master
env: TENSORFLOW='tensorflow<1.13' KERAS='keras==2.2.5'
- os: linux
python: 3.6
if: branch = master
env: TENSORFLOW='tensorflow<1.12' KERAS='keras==2.2.5'
# - os: linux
# python: 3.6
# if: branch = master
# env: TENSORFLOW='tensorflow<1.11' KERAS='keras==2.2.4'
# # tensorflow 1.10 requires numpy <= 1.14.5, which causes problems -> not supported
# # https://github.com/tensorflow/tensorflow/blob/v1.10.1/tensorflow/tools/pip_package/setup.py#L54
- os: linux
python: 3.6
if: branch = master
env: TENSORFLOW='tensorflow<1.10' KERAS='keras==2.2.2'
- os: linux
python: 3.6
if: branch = master
# env: TENSORFLOW='tensorflow<1.9' KERAS='keras==2.2.0' # causes segmentation fault, why?
env: TENSORFLOW='tensorflow<1.8' KERAS='keras==2.2.0'
- os: linux
python: 3.6
if: branch = master
env: TENSORFLOW='tensorflow<1.8' KERAS='keras==2.1.6'
- os: linux
python: 3.6
if: branch = master
# lowest supported keras version, last tensorflow release that supports CUDA 8
env: TENSORFLOW='tensorflow==1.4.1' KERAS='keras==2.1.2'
###########
install:
- pip install $TENSORFLOW $KERAS
- if [ -z $ONLY_INSTALL ]; then
pip install .;
else
pip install csbdeep;
fi
script:
- if [ -z $ONLY_INSTALL ]; then
pytest -v --durations=50;
fi