Use TravisCI workspaces

This commit is contained in:
Vidar Holen 2020-07-01 21:21:38 -07:00
parent 210cdcd01a
commit baab5b53e0
2 changed files with 40 additions and 4 deletions

View File

@ -1,7 +1,7 @@
#!/bin/bash
# This script packages up Travis compiled binaries
set -ex
shopt -s nullglob
shopt -s nullglob extglob
cd deploy
cp ../LICENSE LICENSE.txt
@ -59,7 +59,11 @@ do
rm "shellcheck"
done
rm !(*.xz|*.zip)
for file in ./*
do
sha512sum "$file" > "$file.sha512sum"
done
ls -l

View File

@ -7,14 +7,47 @@ services:
jobs:
include:
- stage: Build
# This must weirdly not have a dash, otherwise an empty job is created
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
workspaces:
create:
name: ws-armv6hf
paths: deploy
- env: BUILD=aarch64
workspaces:
create:
name: ws-aarch64
paths: deploy
- env: BUILD=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
# Deploy only for pushes to master branch, not other branches, not PRs.
@ -39,7 +72,6 @@ script:
- ./striptests
- set -ex; build_"$BUILD"; set +x;
- ./.prepare_deploy
- ./.github_deploy
# This is in global context and runs for every stage that doesn't override it.
after_failure: |