Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
iris
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jonas Kastberg
iris
Commits
b5fa9b29
Commit
b5fa9b29
authored
Jan 13, 2017
by
Ralf Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avoid re-downloading already properly pinned packages
parent
bf761474
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
7 deletions
+17
-7
.gitlab-ci.yml
.gitlab-ci.yml
+1
-1
build/opam-ci.sh
build/opam-ci.sh
+10
-4
build/opam-pins.sh
build/opam-pins.sh
+6
-2
No files found.
.gitlab-ci.yml
View file @
b5fa9b29
...
...
@@ -5,7 +5,7 @@ iris-coq8.6:
-
coq
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'
cache
:
...
...
build/opam-ci.sh
View file @
b5fa9b29
...
...
@@ -17,10 +17,16 @@ opam update
# 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
...
...
build/opam-pins.sh
View file @
b5fa9b29
...
...
@@ -11,7 +11,11 @@ while read PACKAGE URL HASH; do
# an MPI URL -- try doing recursive pin processing
curl
-f
"
$URL
/raw/
$HASH
"
2> /dev/null |
"
$0
"
fi
echo
"[opam-pins] Applying pin:
$PACKAGE
->
$URL
#
$HASH
"
opam pin add
"
$PACKAGE
.dev.
$HASH
"
"
$URL
#
$HASH
"
-k
git
-y
-n
if
opam pin list | fgrep
"
$PACKAGE
.dev.
$HASH
"
>
/dev/null
;
then
echo
"[opam-pins]
$PACKAGE
already at commit
$HASH
"
else
echo
"[opam-pins] Applying pin:
$PACKAGE
->
$URL
#
$HASH
"
opam pin add
"
$PACKAGE
.dev.
$HASH
"
"
$URL
#
$HASH
"
-k
git
-y
-n
fi
echo
done
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