forked from vanvalenlab/deepcell-tf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
59 lines (50 loc) · 1.43 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
sudo: false
dist: trusty
git:
depth: false
language: python
python:
- 3.5
env:
- TF_VERSION=1.8.0
- TF_VERSION=1.9.0
- TF_VERSION=1.10.0
- TF_VERSION=1.11.0
- TF_VERSION=1.12.0
cache: pip
install:
- pip install cython
- pip install matplotlib
- pip install nbformat
- pip install scipy
- pip install numpy
- pip install pandas
- pip install networkx
- pip install scikit-learn
- pip install scikit-image
- pip install opencv-python
- pip install keras_preprocessing>=1.0.6
# install TensorFlow (CPU version).
- pip install tensorflow==$TF_VERSION
# install testing requirements
- pip install pytest pytest-cov==2.5.1 pytest-pep8 coveralls
# install deepcell with setup.py
# - python setup.py install
- python setup.py build_ext --inplace
script:
- python -m pytest --cov=deepcell --pep8 deepcell tests
jobs:
include:
- stage: deploy
if: (branch = master OR branch =~ ^r[0-9]+.[0-9]+) AND type != pull_request
env: TF_VERSION=1.12.0
python: 3.5
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build -t "$TRAVIS_REPO_SLUG" .
- docker images
- docker tag "$TRAVIS_REPO_SLUG" "$TRAVIS_REPO_SLUG":latest
- if [[ "$TRAVIS_BRANCH" != "master" ]] ; then docker tag "$TRAVIS_REPO_SLUG" "$TRAVIS_REPO_SLUG":"${TRAVIS_BRANCH#r}" ; fi
- docker push "$TRAVIS_REPO_SLUG"
after_success:
- coveralls