Browse Source

Produce a docker image when there's a new tag

Joonas Bergius 8 years ago
parent
commit
4fc0fd9a9a
1 changed files with 12 additions and 0 deletions
  1. 12 0
      .travis.yml

+ 12 - 0
.travis.yml

@@ -1,3 +1,11 @@
+sudo: required
+
+services:
+  - docker
+
+env:
+  - DOCKER_TAG=$TRAVIS_TAG
+
 language: python
 python:
   - "2.7"
@@ -6,3 +14,7 @@ install:
   - pip install pep8
 script:
   - ./scripts/cibuild.sh
+after_success:
+  - if [ ! -z "$TRAVIS_TAG" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
+    ./scripts/docker-build.sh;
+    fi