Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lambda-rust
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Simon Spies
lambda-rust
Commits
5a475f3a
Commit
5a475f3a
authored
8 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
opam-ci: avoid re-downloading already properly pinned packages
parent
bfe08683
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+1
-1
1 addition, 1 deletion
.gitlab-ci.yml
build/opam-ci.sh
+10
-5
10 additions, 5 deletions
build/opam-ci.sh
with
11 additions
and
6 deletions
.gitlab-ci.yml
+
1
−
1
View file @
5a475f3a
...
...
@@ -3,7 +3,7 @@ image: ralfjung/opam-ci:latest
lrust-coq8.6
:
script
:
# prepare
-
. build/opam-ci.sh
'
coq 8.6
' '
coq-mathcomp-ssreflect 1.6.1
'
-
. build/opam-ci.sh coq 8.6
coq-mathcomp-ssreflect 1.6.1
# build
-
'
time
make
-j8
TIMED=y
2>&1
|
tee
build-log.txt'
-
'
if
fgrep
Axiom
build-log.txt
>/dev/null;
then
exit
1;
fi'
...
...
This diff is collapsed.
Click to expand it.
build/opam-ci.sh
+
10
−
5
View file @
5a475f3a
...
...
@@ -14,14 +14,19 @@ test -d "$OPAMROOT/repo/coq-extra-dev" || opam repo add coq-extra-dev https://co
test
-d
"
$OPAMROOT
/repo/coq-core-dev"
||
opam repo add coq-core-dev https://coq.inria.fr/opam/core-dev
-p
5
test
-d
"
$OPAMROOT
/repo/coq-released"
||
opam repo add coq-released https://coq.inria.fr/opam/released
-p
10
opam update
opam
install
ocamlfind
-y
# Remove this once the Coq crew fixed their package...
# Install fixed versions of some dependencies
echo
for
PIN
in
"
${
@
}
"
do
echo
"Applying pin:
$PIN
"
opam pin add
$PIN
-k
version
-y
while
((
"$#"
))
;
do
# while there are arguments left
PACKAGE
=
"
$1
"
;
shift
VERSION
=
"
$1
"
;
shift
# Check if the pin is already set
if
opam pin list | fgrep
"
$PACKAGE
.
$VERSION
"
>
/dev/null
;
then
echo
"[opam-ci]
$PACKAGE
already pinned to
$VERSION
"
else
echo
"[opam-ci] Pinning
$PACKAGE
to
$VERSION
"
opam pin add
"
$PACKAGE
"
"
$VERSION
"
-k
version
-y
fi
done
# Install build-dependencies
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment