-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
54 lines (48 loc) · 1.77 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
# RISC OS CI build through build.riscos.online
#
# To reuse this configuration with your own repository:
#
# - Create a .robuild.yaml to describe what should be built on RISC OS.
# - `jobs.build.script` should be a list of commands to run on RISC OS
# - `jobs.build.artifacts.path` should be the directory to zip.
# - Create a VersionNum file if you wish to use the automated versioning
# in the same style as the RISC OS sources. [optional]
# - Update the 2nd step ('give the archive a versioned name') to give a
# suitable name for the archive.
# - Update the artifacts path to include the same names.
#
# JFPatch only builds the module; it doesn't do a full release at present (the Makefile would need
# updating for that)
riscos:
stage: build
script:
- |
set -o pipefail
# Zip up the source to send to robuild
zip -q9r /tmp/source-archive.zip * .robuild.yaml
# Fetch the build client
curl -s -L -o riscos-build-online https://github.com/gerph/robuild-client/releases/download/v0.05/riscos-build-online && chmod +x riscos-build-online
# Send the archive file to build service
./riscos-build-online -i /tmp/source-archive.zip -t 60 -o /tmp/built
- |
if [[ -f VersionNum ]] ; then
version=$(sed '/MajorVersion / ! d ; s/.*MajorVersion *"\(.*\)"/\1/' VersionNum)
else
version=$(git rev-parse --short HEAD)
fi
echo "This is version: $version"
if [ -f /tmp/built,a91 ] ; then
cp /tmp/built,a91 "DDEUtils-$version.zip"
else
echo "No archive was built?"
exit 1
fi
artifacts:
when: always
paths:
- DDEUtils-*.zip
tags:
- linux
stages:
- build