Improved .travis.yml
parent
20fd790c59
commit
774bfd7c0c
24
.travis.yml
24
.travis.yml
|
@ -1,17 +1,27 @@
|
||||||
sudo: true
|
sudo: true
|
||||||
dist: trusty
|
dist: trusty
|
||||||
|
|
||||||
|
services:
|
||||||
|
- docker
|
||||||
|
|
||||||
|
before_install:
|
||||||
|
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
||||||
|
- docker images
|
||||||
|
- docker pull $DOCKER_USERNAME/teaweb:build
|
||||||
|
- docker images
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
include:
|
include:
|
||||||
- stage: build teaweb
|
- stage: TeaWeb build master branch
|
||||||
script:
|
script:
|
||||||
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
- "mkdir build"
|
||||||
- docker images
|
- "docker run --rm -v build/logs/:/build/logs/ -v build/packages/:/build/packages/ $DOCKER_USERNAME/teaweb:build_new --enable-release --enable-debug"
|
||||||
- docker pull $DOCKER_USERNAME/teaweb:build
|
- "ls -lah build/"
|
||||||
- docker images
|
- "ls -lah build/logs/"
|
||||||
- "docker run --rm $DOCKER_USERNAME/teaweb:build /bin/bash -c \"export GIT_AUTHTOKEN=\"$GIT_AUTHTOKEN\"; /root/build_teaweb.sh travis\""
|
- "ls -lah build/packages/"
|
||||||
|
#TODO: Upload!
|
||||||
if: branch = master
|
if: branch = master
|
||||||
- stage: test teaweb build
|
- stage: TeaWeb verify source
|
||||||
script:
|
script:
|
||||||
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
||||||
- docker images
|
- docker images
|
||||||
|
|
Loading…
Reference in New Issue