Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Iris
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
Model registry
Operate
Environments
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
Abhishek Anand
Iris
Commits
842e85c0
Commit
842e85c0
authored
7 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
CI: tweaks
parent
01b8c312
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+1
-1
1 addition, 1 deletion
.gitlab-ci.yml
Makefile
+2
-2
2 additions, 2 deletions
Makefile
build/opam-ci.sh
+3
-1
3 additions, 1 deletion
build/opam-ci.sh
with
6 additions
and
4 deletions
.gitlab-ci.yml
+
1
−
1
View file @
842e85c0
...
@@ -21,7 +21,7 @@ variables:
...
@@ -21,7 +21,7 @@ variables:
-
'
cat
build-log.txt
|
egrep
"[a-zA-Z0-9_/-]+
\((real|user):
[0-9]"
|
tee
build-time.txt'
-
'
cat
build-log.txt
|
egrep
"[a-zA-Z0-9_/-]+
\((real|user):
[0-9]"
|
tee
build-time.txt'
-
'
if
test
-n
"$VALIDATE"
&&
((
RANDOM
%
10
==
0
));
then
make
validate;
fi'
-
'
if
test
-n
"$VALIDATE"
&&
((
RANDOM
%
10
==
0
));
then
make
validate;
fi'
cache
:
cache
:
key
:
"
coq$COQ_VERSION-ssr$SSR_VERSION"
key
:
"
coq
.
$COQ_VERSION-ssr
.
$SSR_VERSION"
paths
:
paths
:
-
opamroot/
-
opamroot/
only
:
only
:
...
...
This diff is collapsed.
Click to expand it.
Makefile
+
2
−
2
View file @
842e85c0
...
@@ -26,8 +26,8 @@ build-dep: phony
...
@@ -26,8 +26,8 @@ build-dep: phony
mkdir
-p
build-dep
mkdir
-p
build-dep
@
sed
<opam
's/^\(build\|install\|remove\):.*/\1: []/; s/^name: *"\(.*\)" */name: "\1-builddep"/'
>
build-dep/opam
@
sed
<opam
'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
@
fgrep builddep build-dep/opam
>
/dev/null
||
(
echo
"sed failed to fix the package name"
&&
exit
1
)
# sanity check
@
# Compute the package name, add the pin and
(
re
)
install
it.
Reinstallation is needed
# Compute the package name, add the pin and
(
re
)
install
it.
@
# in case the pin already exists, but the builddep package changed.
@
#
Reinstallation is needed
in case the pin already exists, but the builddep package changed.
@
BUILD_DEP_PACKAGE
=
"
$$(
egrep "
^name:
" build-dep/opam | sed 's/^name: *"
\(
.
*
\)
" */
\1
/'
)
"
;
\
@
BUILD_DEP_PACKAGE
=
"
$$(
egrep "
^name:
" build-dep/opam | sed 's/^name: *"
\(
.
*
\)
" */
\1
/'
)
"
;
\
opam pin add
"
$$
BUILD_DEP_PACKAGE"
"
$$(
pwd
)
/build-dep"
-k
path
$(
OPAMFLAGS
)
&&
\
opam pin add
"
$$
BUILD_DEP_PACKAGE"
"
$$(
pwd
)
/build-dep"
-k
path
$(
OPAMFLAGS
)
&&
\
opam reinstall
"
$$
BUILD_DEP_PACKAGE"
opam reinstall
"
$$
BUILD_DEP_PACKAGE"
...
...
This diff is collapsed.
Click to expand it.
build/opam-ci.sh
+
3
−
1
View file @
842e85c0
#!/bin/bash
#!/bin/bash
set
-e
set
-e
# This script installs the build dependencies for CI builds.
#
# This script installs the build dependencies for CI builds.
# Prepare OPAM configuration
# Prepare OPAM configuration
export
OPAMROOT
=
"
$(
pwd
)
/opamroot"
export
OPAMROOT
=
"
$(
pwd
)
/opamroot"
...
@@ -44,10 +44,12 @@ while (( "$#" )); do # while there are arguments left
...
@@ -44,10 +44,12 @@ while (( "$#" )); do # while there are arguments left
done
done
# Upgrade cached things.
# Upgrade cached things.
echo
"[opam-ci] Upgrading opam"
opam upgrade
-y
opam upgrade
-y
# Install build-dependencies.
# Install build-dependencies.
echo
echo
echo
"[opam-ci] Installing build-dependencies"
make build-dep
OPAMFLAGS
=
-y
make build-dep
OPAMFLAGS
=
-y
# done
# 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