Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Janno
iris-coq
Commits
17a99876
Commit
17a99876
authored
Apr 24, 2018
by
Ralf Jung
Browse files
CI: let's see if opam reinstall works faster than opam upgrade for changing build-deps
parent
784353e0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
17a99876
...
...
@@ -20,7 +20,7 @@ Makefile.coq: _CoqProject Makefile awk.Makefile
# Install build-dependencies
build-dep/opam
:
opam Makefile
# Creating
the
build-dep package.
@
echo
"
# Creating build-dep package.
"
@
mkdir
-p
build-dep
@
sed
<opam
-E
's/^(build|install|remove):.*/\1: []/; s/^name: *"(.*)" */name: "\1-builddep"/'
>
build-dep/opam
@
fgrep builddep build-dep/opam
>
/dev/null
||
(
echo
"sed failed to fix the package name"
&&
exit
1
)
# sanity check
...
...
@@ -31,12 +31,13 @@ build-dep: build-dep/opam phony
@
# that are incompatible with our build requirements.
@
# To achieve this, we create a fake opam package that has our build-dependencies as
@
# dependencies, but does not actually install anything.
@
# Upgrading is needed in case the pin already exists, but the builddep package changed.
@
# Reinstalling is needed in case the pin already exists, but the builddep package changed.
@
# Once we depend on opam 2, we can remove that last step.
@
BUILD_DEP_PACKAGE
=
"
$$
(egrep "
^name:
" build-dep/opam | sed 's/^name: *"
\(
.
*
\)
" */
\1
/')"
;
\
echo
"# Pinning build-dep package."
&&
\
opam pin add
-k
path
$(OPAMFLAGS)
"
$$
BUILD_DEP_PACKAGE"
.dev build-dep
&&
\
echo
"#
Updat
ing build-dep package."
&&
\
opam
upgrade
"
$$
BUILD_DEP_PACKAGE"
echo
"#
Reinstall
ing build-dep package."
&&
\
opam
reinstall
$(OPAMFLAGS)
"
$$
BUILD_DEP_PACKAGE"
# Some files that do *not* need to be forwarded to Makefile.coq
Makefile
:
;
...
...
ci
@
40b71102
Compare
9028d6c1
...
40b71102
Subproject commit
9028d6c194dff126443a1d19f23a13ac1e8ead3a
Subproject commit
40b71102efe051c777a785035aebcbaa4c2ec19f
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment