Skip to content

Commit

Permalink
Merge pull request #9 from KillrVideo/fix_travis
Browse files Browse the repository at this point in the history
Travis build improvements
  • Loading branch information
jeffreyscarpenter authored Aug 26, 2019
2 parents 1c6338a + 1bd4122 commit e95f92d
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
dist: xenial # required for Python >= 3.7
language: python
python:
- "3.7"
- "3.7"

# Build the docker image
script:
- ./scripts/docker-build.sh
- docker build -t ${TRAVIS_COMMIT} .

# If successful, see if we need to publish also
after_success:
- ./scripts/travis-publish.sh

- test -z $TRAVIS_TAG && travis_terminate 0
- docker tag ${TRAVIS_COMMIT} killrvideo/killrvideo-python:${TRAVIS_TAG}
- docker login -u $DOCKER_USER -p $DOCKER_PASS
- docker push killrvideo/killrvideo-python:${TRAVIS_TAG}
- "[ $(git tag --sort=-v:refname | grep -E '^\\d+.\\d+.\\d+$' | head -n1) == \"$TRAVIS_TAG\" ] && docker tag ${TRAVIS_COMMIT} killrvideo/killrvideo-python:latest; docker push killrvideo/killrvideo-python:latest"
# Sudo required for doing docker build
sudo: required
services:
- docker
- docker

env:
global:
Expand Down

0 comments on commit e95f92d

Please sign in to comment.