Experimenting with git-release within travis.yml

canary
WolverinDEV 2019-02-23 10:35:00 +01:00
parent a16ff713ea
commit 5be26aaa3a
1 changed files with 13 additions and 11 deletions

View File

@ -4,24 +4,26 @@ dist: trusty
services: services:
- docker - docker
before_install: #before_install:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin #- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker images #- docker images
- docker pull $DOCKER_USERNAME/teaweb:build_new #- docker pull $DOCKER_USERNAME/teaweb:build_new
- docker images #- docker images
jobs: jobs:
include: include:
- stage: "build" - stage: "build"
name: TeaWeb build master branch name: TeaWeb build master branch
script: script:
- "mkdir -p /tmp/build" #- "mkdir -p /tmp/build"
- "docker run --rm -v /tmp/build/logs/:/build/logs/ -v /tmp/build/packages/:/build/packages/ -v `pwd`:/build/TeaWeb $DOCKER_USERNAME/teaweb:build_new --enable-release --enable-debug" #- "docker run --rm -v /tmp/build/logs/:/build/logs/ -v /tmp/build/packages/:/build/packages/ -v `pwd`:/build/TeaWeb $DOCKER_USERNAME/teaweb:build_new --enable-release --enable-debug"
- "ls -lah /tmp/build/" #- "ls -lah /tmp/build/"
- "ls -lah /tmp/build/logs/" #- "ls -lah /tmp/build/logs/"
- "ls -lah /tmp/build/packages/" #- "ls -lah /tmp/build/packages/"
- "wget https://github.com/buildkite/github-release/releases/download/v1.0/github-release-linux-amd64 -O /tmp/git-release -q; chmod +x /tmp/git-release;" #- "wget https://github.com/buildkite/github-release/releases/download/v1.0/github-release-linux-amd64 -O /tmp/git-release -q; chmod +x /tmp/git-release;"
- > - >
mkdir -p /tmp/build/packages/;
echo "XXXX" > /tmp/build/packages/xxxxx;
export GIT_TAG=$(git rev-parse HEAD) export GIT_TAG=$(git rev-parse HEAD)
export GIT_TAG_SHORT=$(git rev-parse --short HEAD) export GIT_TAG_SHORT=$(git rev-parse --short HEAD)
export GITHUB_RELEASE_TAG="This is a auto build release from travis"; export GITHUB_RELEASE_TAG="This is a auto build release from travis";