6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-11-09 23:00:59 +00:00
tutor/.travis.yml
Régis Behmo edec42779f Fix travis builds on branches
For some reason, `docker login` doesn't work on pull requests. So we run
"docker login" only during deploy, and only on master and release
branches.
2018-09-05 14:04:38 +02:00

16 lines
363 B
YAML

language: minimal
services:
- docker
script:
- make build-configurator
- make configure SILENT=1
- make build
- make migrate
#- make assets # too time-consuming
deploy:
provider: script
script: docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD" && make push
on:
all_branches: true
condition: $TRAVIS_BRANCH =~ ^master|release\/.*$