Skip to content

Commit

Permalink
Add publish stage to travis
Browse files Browse the repository at this point in the history
  • Loading branch information
phlax committed Apr 12, 2018
1 parent 17edada commit 99e82df
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,25 @@ cache:
- $HOME/virtualenv/python2.7.14/lib
- $HOME/virtualenv/python2.7/bin

stages:
- name: build
if: branch = master AND type = push
- name: test
# if: branch = DOESNOTEXIST
- name: publish
# we want this to only run on release
if: branch = DOESNOTEXIST
- name: data
# we want this to only run on release
if: branch = DOESNOTEXIST

install:
- pip install -qr requirements/host.txt

jobs:
include:
- stage: build
env: POOTLE_ENV=build
if: branch = master AND type = push
script:
- export DOCKER_USERNAME=${DOCKER_USERNAME:-translatetravis2}
- makey build-travis-images
Expand Down Expand Up @@ -61,6 +72,15 @@ jobs:
- docker-compose pull --parallel --include-deps dev-travis-mariadb
- makey makey-mariadb-travis travis-test

- stage: publish
env: POOTLE_ENV=publish-demo
script:
- makey publish-demo-images
- stage: data
env: POOTLE_ENV=publish-demo-db
script:
- makey publish-demo-db

notifications:
email:
on_failure: always
Expand Down

0 comments on commit 99e82df

Please sign in to comment.