2018-10-13 17:12:35 +00:00
|
|
|
sudo: true
|
|
|
|
dist: trusty
|
2018-10-09 12:20:17 +00:00
|
|
|
|
2018-10-13 17:12:35 +00:00
|
|
|
jobs:
|
|
|
|
include:
|
2018-10-13 18:57:15 +00:00
|
|
|
- stage: build teaweb
|
2018-10-13 17:12:35 +00:00
|
|
|
script:
|
|
|
|
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
|
|
|
- docker images
|
2018-10-13 19:54:27 +00:00
|
|
|
- docker pull $DOCKER_USERNAME/teaweb:build
|
2018-10-13 17:12:35 +00:00
|
|
|
- docker images
|
2018-10-20 19:00:43 +00:00
|
|
|
- docker run --rm $DOCKER_USERNAME/teaweb /bin/bash -c /root/build_teaweb.sh "travis" "travis" "travis" "travis"
|
2018-10-13 18:57:15 +00:00
|
|
|
if: branch = master
|
|
|
|
- stage: test teaweb
|
2018-10-13 17:12:35 +00:00
|
|
|
script:
|
2018-10-13 18:57:15 +00:00
|
|
|
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
|
|
|
- docker images
|
2018-10-13 19:54:27 +00:00
|
|
|
- docker pull $DOCKER_USERNAME/teaweb:build
|
2018-10-13 18:57:15 +00:00
|
|
|
- docker images
|
|
|
|
- docker run --rm teaweb:build /bin/bash -c /root/build_teaweb.sh
|
|
|
|
if: branch != master
|