Skip to content

Commit

Permalink
put all the testing criteria back
Browse files Browse the repository at this point in the history
  • Loading branch information
willgraf committed Sep 16, 2019
1 parent ee48fbb commit 6b23d1a
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ git:
language: python

python:
# - 2.7
# - 3.5
- 2.7
- 3.5
- 3.6

env:
# - TF_VERSION=1.8.0
# - TF_VERSION=1.9.0
# - TF_VERSION=1.10.0
# - TF_VERSION=1.11.0
- 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
Expand All @@ -24,24 +24,24 @@ install:
# remove tensorflow from requirements.txt
- sed -i "/tensorflow/d" requirements.txt
- pip install -r requirements.txt
# # install TensorFlow (CPU version).
# install TensorFlow (CPU version).
- pip install tensorflow==$TF_VERSION
# # install testing requirements
# - pip install pytest pytest-cov==2.5.1 pytest-pep8 coveralls
# install testing requirements
- pip install pytest pytest-cov==2.5.1 pytest-pep8 coveralls
# Install sphinx to check documentation build
- pip install sphinx m2r
# install deepcell with setup.py
# - python setup.py install
- python setup.py build_ext --inplace

script:
# - pytest --cov=deepcell --pep8
- pytest --cov=deepcell --pep8
- sphinx-build -nT -b dummy ./docs/source build/html

jobs:
include:
- stage: deploy
# if: tag IS present
if: tag IS present
env: TF_VERSION=1.12.0
python: 3.5
script:
Expand All @@ -50,14 +50,12 @@ jobs:
- docker build --build-arg TF_VERSION=$TF_VERSION -t "$TRAVIS_REPO_SLUG" .
- docker images
- docker tag "$TRAVIS_REPO_SLUG" "$TRAVIS_REPO_SLUG":latest
# - docker tag "$TRAVIS_REPO_SLUG" "$TRAVIS_REPO_SLUG":"${TRAVIS_TAG}"
- docker tag "$TRAVIS_REPO_SLUG" "$TRAVIS_REPO_SLUG":test
- docker tag "$TRAVIS_REPO_SLUG" "$TRAVIS_REPO_SLUG":"${TRAVIS_TAG}"
- docker push "$TRAVIS_REPO_SLUG"
# edit the requirements and Dockerfile to build the GPU TensorFlow base image
- docker build --build-arg TF_VERSION=$TF_VERSION-gpu -t "$TRAVIS_REPO_SLUG" .
- docker images
# - docker tag "$TRAVIS_REPO_SLUG" "$TRAVIS_REPO_SLUG":"${TRAVIS_TAG}-gpu"
- docker tag "$TRAVIS_REPO_SLUG" "$TRAVIS_REPO_SLUG":test-gpu
- docker tag "$TRAVIS_REPO_SLUG" "$TRAVIS_REPO_SLUG":"${TRAVIS_TAG}-gpu"
- docker push "$TRAVIS_REPO_SLUG"

after_success:
Expand Down

0 comments on commit 6b23d1a

Please sign in to comment.