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-11-07 18:10:46 +00:00
|
|
|
- "docker run --rm $DOCKER_USERNAME/teaweb:build /bin/bash -c \"/root/build_teaweb.sh travis\""
|
2018-10-13 18:57:15 +00:00
|
|
|
if: branch = master
|
2018-11-06 17:18:53 +00:00
|
|
|
- stage: test teaweb build
|
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
|