Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Iris
ci
Commits
697e472e
Commit
697e472e
authored
Sep 03, 2020
by
Ralf Jung
Browse files
catch CI job name / Coq version mismatches
parent
20c554e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
prepare-opam.sh
View file @
697e472e
...
...
@@ -82,6 +82,14 @@ while (( "$#" )); do # while there are arguments left
status
"[prepare-opam]
$KIND
-pinning
$PACKAGE
to
$VERSION
"
opam pin add
-y
-n
-k
"
$KIND
"
"
$PACKAGE
"
"
$VERSION
"
PINNED_PACKAGES
=
"
$PINNED_PACKAGES
$PACKAGE
"
# Special treatment for "coq" package: make sure its version matches the CI job name.
if
[[
"
$PACKAGE
"
==
"coq"
]]
;
then
# If the job name contains `coq.SOMETHING` but not `coq.$VERSION`, then it is wrong.
if
fgrep
-q
--
"-coq."
<<<
"
$CI_JOB_NAME
"
&&
!
fgrep
-q
--
"-coq.
$VERSION
"
<<<
"
$CI_JOB_NAME
"
;
then
panic
"CI job name (
$CI_JOB_NAME
) does not match Coq version (
$VERSION
)"
fi
fi
done
echo
...
...
Write
Preview
Supports
Markdown
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