Use TravisCI workspaces
This commit is contained in:
parent
210cdcd01a
commit
baab5b53e0
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# This script packages up Travis compiled binaries
|
# This script packages up Travis compiled binaries
|
||||||
set -ex
|
set -ex
|
||||||
shopt -s nullglob
|
shopt -s nullglob extglob
|
||||||
cd deploy
|
cd deploy
|
||||||
|
|
||||||
cp ../LICENSE LICENSE.txt
|
cp ../LICENSE LICENSE.txt
|
||||||
|
@ -59,7 +59,11 @@ do
|
||||||
rm "shellcheck"
|
rm "shellcheck"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
rm !(*.xz|*.zip)
|
||||||
|
|
||||||
for file in ./*
|
for file in ./*
|
||||||
do
|
do
|
||||||
sha512sum "$file" > "$file.sha512sum"
|
sha512sum "$file" > "$file.sha512sum"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
ls -l
|
||||||
|
|
38
.travis.yml
38
.travis.yml
|
@ -7,14 +7,47 @@ services:
|
||||||
jobs:
|
jobs:
|
||||||
include:
|
include:
|
||||||
- stage: Build
|
- stage: Build
|
||||||
|
|
||||||
# This must weirdly not have a dash, otherwise an empty job is created
|
# This must weirdly not have a dash, otherwise an empty job is created
|
||||||
env: BUILD=linux
|
env: BUILD=linux
|
||||||
- env: BUILD=windows
|
workspaces:
|
||||||
|
create:
|
||||||
|
name: ws-linux
|
||||||
|
paths: deploy
|
||||||
|
# - env: BUILD=windows
|
||||||
|
# workspaces:
|
||||||
|
# create:
|
||||||
|
# name: ws-windows
|
||||||
|
# paths: deploy
|
||||||
- env: BUILD=armv6hf
|
- env: BUILD=armv6hf
|
||||||
|
workspaces:
|
||||||
|
create:
|
||||||
|
name: ws-armv6hf
|
||||||
|
paths: deploy
|
||||||
- env: BUILD=aarch64
|
- env: BUILD=aarch64
|
||||||
|
workspaces:
|
||||||
|
create:
|
||||||
|
name: ws-aarch64
|
||||||
|
paths: deploy
|
||||||
- env: BUILD=osx
|
- env: BUILD=osx
|
||||||
os: osx
|
os: osx
|
||||||
|
workspaces:
|
||||||
|
create:
|
||||||
|
name: ws-osx
|
||||||
|
paths: deploy
|
||||||
|
|
||||||
|
- stage: Upload Artifacts to GitHub
|
||||||
|
workspaces:
|
||||||
|
use:
|
||||||
|
- ws-osx
|
||||||
|
- ws-linux
|
||||||
|
- ws-armv6hf
|
||||||
|
- ws-aarch64
|
||||||
|
script:
|
||||||
|
- ls -la ${CASHER_DIR}/ || true
|
||||||
|
# Kludge broken TravisCI workspaces
|
||||||
|
- tar -xvf ${CASHER_DIR}/ws-osx-fetch.tgz --strip-components=5
|
||||||
|
- ls -la deploy
|
||||||
|
- ./.github_deploy
|
||||||
|
|
||||||
- stage: Deploy docker image
|
- stage: Deploy docker image
|
||||||
# Deploy only for pushes to master branch, not other branches, not PRs.
|
# Deploy only for pushes to master branch, not other branches, not PRs.
|
||||||
|
@ -39,7 +72,6 @@ script:
|
||||||
- ./striptests
|
- ./striptests
|
||||||
- set -ex; build_"$BUILD"; set +x;
|
- set -ex; build_"$BUILD"; set +x;
|
||||||
- ./.prepare_deploy
|
- ./.prepare_deploy
|
||||||
- ./.github_deploy
|
|
||||||
|
|
||||||
# This is in global context and runs for every stage that doesn't override it.
|
# This is in global context and runs for every stage that doesn't override it.
|
||||||
after_failure: |
|
after_failure: |
|
||||||
|
|
Loading…
Reference in New Issue