Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
RiscOS
T
Tools
Sources
Squish
Commits
b7c38b3d
Commit
b7c38b3d
authored
3 years ago
by
Ben Avison
Browse files
Options
Download
Email Patches
Plain Diff
Enable CI/CD
parent
03217a51
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
.gitlab-ci.yml
.gitlab-ci.yml
+24
-0
No files found.
.gitlab-ci.yml
0 → 100644
View file @
b7c38b3d
include
:
-
project
:
'
Support/CI'
file
:
'
/Squish.yml'
deploy_to_library
:
stage
:
deploy
only
:
refs
:
[
master
]
tags
:
[
cross
]
script
:
# Depending on whether the pipeline is launched by the merge request or
# manually, VersionNum may or may not have been updated. Switch to the
# tip of master to ensure consistency.
-
git checkout origin/master
-
SOURCETAG=$(git describe --abbrev=8 --tags --always)
-
BRANCH=Import$(echo $SOURCETAG | sed -e 's/[-._]//g')
-
'
curl
--location
--output
~/cache/common/BuildHost.zip
-z
~/cache/common/BuildHost.zip
"https://gitlab.riscosopen.org/Products/BuildHost/-/jobs/artifacts/master/download?job=latest_package_tree"'
-
unzip -q ~/cache/common/BuildHost.zip
-
'
[
!
-e
BuildInfo
]
||
cat
BuildInfo'
-
source RiscOS/Env/ROOL/BuildHost.sh
-
git clone https://$USER:$PASSWORD@gitlab.riscosopen.org/$USER/Library.git
-
INSTDIR=../Library/Build mk install
# If the installed binary has changed in any way, raise a merge request
-
cd Library && git diff --quiet --exit-code || ( git checkout -b $BRANCH; git add .; git commit -m "Update Squish from tag $SOURCETAG"; git push -o merge_request.create -o merge_request.target=RiscOS/Library/master origin $BRANCH )
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment