Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
stdpp
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
Arthur Azevedo de Amorim
stdpp
Commits
2ac3a3b8
Commit
2ac3a3b8
authored
7 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
update opam CI
parent
937ef30b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
build/opam-ci.sh
+14
-8
14 additions, 8 deletions
build/opam-ci.sh
with
14 additions
and
8 deletions
build/opam-ci.sh
+
14
−
8
View file @
2ac3a3b8
...
...
@@ -14,22 +14,28 @@ export OPAM_EDITOR="$(which false)"
# Make sure we got a good OPAM.
test
-d
"
$OPAMROOT
"
||
(
mkdir
"
$OPAMROOT
"
&&
run_and_print opam init
--no-setup
-y
)
eval
`
opam conf
env
`
# Delete old pins from opam.pins times.
run_and_print opam pin remove coq-stdpp
-n
run_and_print opam pin remove coq-iris
-n
# Make sure the pin for the builddep package is not stale.
run_and_print make build-dep/opam
#
Get us all the l
ate
st
repositories
#
Upd
ate repositories
if
test
$(
find
"
$OPAMROOT
/repo/package-index"
-mtime
+0
)
;
then
# last update was more than a day ago
run_and_print opam update
else
# only update iris-dev
# only update iris-dev
, and only if it already exists
if
test
-d
"
$OPAMROOT
/repo/iris-dev"
;
then
run_and_print opam update iris-dev
;
fi
fi
test
-d
"
$OPAMROOT
/repo/coq-extra-dev"
&&
run_and_print opam repo remove coq-extra-dev
test
-d
"
$OPAMROOT
/repo/coq-core-dev"
||
run_and_print opam repo add coq-core-dev https://coq.inria.fr/opam/core-dev
-p
5
# Make sure we got the right set of repositories registered
if
echo
"
$@
"
| fgrep
"dev"
;
then
# We are compiling against a dev version of something. Get ourselves the dev repositories.
test
-d
"
$OPAMROOT
/repo/coq-extra-dev"
||
run_and_print opam repo add coq-extra-dev https://coq.inria.fr/opam/extra-dev
-p
0
test
-d
"
$OPAMROOT
/repo/coq-core-dev"
||
run_and_print opam repo add coq-core-dev https://coq.inria.fr/opam/core-dev
-p
5
else
# No dev version, make sure we do not have the dev repositories.
test
-d
"
$OPAMROOT
/repo/coq-extra-dev"
&&
run_and_print opam repo remove coq-extra-dev
test
-d
"
$OPAMROOT
/repo/coq-core-dev"
&&
run_and_print opam repo remove coq-core-dev
fi
test
-d
"
$OPAMROOT
/repo/coq-released"
||
run_and_print opam repo add coq-released https://coq.inria.fr/opam/released
-p
10
test
-d
"
$OPAMROOT
/repo/iris-dev"
||
run_and_print opam repo add iris-dev https://gitlab.mpi-sws.org/FP/opam-dev.git
-p
20
echo
...
...
@@ -48,7 +54,7 @@ while (( "$#" )); do # while there are arguments left
echo
"[opam-ci]
$PACKAGE
already pinned to
$VERSION
"
else
echo
"[opam-ci] Pinning
$PACKAGE
to
$VERSION
"
run_and_print opam pin add
"
$PACKAGE
"
"
$VERSION
"
-k
version
-y
run_and_print opam pin add
-y
-k
version
"
$PACKAGE
"
"
$VERSION
"
fi
done
...
...
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