Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
ci
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
Iris
ci
Compare revisions
e5c453511fcab2d178f687a5f226efd44f54b7f4 to 987ea45abdbb1f86a868328c3e51aa1a12cb35d7
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
iris/ci
Select target project
No results found
987ea45abdbb1f86a868328c3e51aa1a12cb35d7
Select Git revision
Swap
Target
iris/ci
Select target project
iris/ci
msammler/ci
snyke7/ci
3 results
e5c453511fcab2d178f687a5f226efd44f54b7f4
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (3)
skip opam upgrade if we are working in a fresh opam root
· 39c267a4
Ralf Jung
authored
6 years ago
39c267a4
also add dev repos when using a beta
· e5889b23
Ralf Jung
authored
6 years ago
e5889b23
move opam publish to before validation (but still after timing upload)
· 987ea45a
Ralf Jung
authored
6 years ago
987ea45a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
buildjob
+26
-26
26 additions, 26 deletions
buildjob
prepare-opam.sh
+15
-9
15 additions, 9 deletions
prepare-opam.sh
with
41 additions
and
35 deletions
buildjob
View file @
987ea45a
...
...
@@ -32,12 +32,6 @@ if fgrep Axiom build-log.txt >/dev/null; then exit 1; fi
echo_color
"
$BOLDGREEN
"
"[buildjob] Build time summary"
cat
build-log.txt | egrep
"(real|user): [0-9]"
|
tee
build-time.txt
# maybe validate
if
[[
-n
"
$VALIDATE
"
]]
;
then
echo_color
"
$BOLDGREEN
"
"[buildjob] Performing validation"
make validate
fi
# maybe submit timing information
if
[[
-n
"
$TIMING_PROJECT
"
&&
-n
"
$TIMING_CONF
"
]]
;
then
echo_color
"
$BOLDGREEN
"
"[buildjob] Submitting timing information to coq-speed"
...
...
@@ -57,26 +51,6 @@ if [[ -n "$TIMING_PROJECT" && -n "$TIMING_CONF" ]]; then
--data-binary
@- < build-time.txt
fi
# maybe generate and upload documentation
if
[[
-n
"
$DOC_DIR
"
&&
"
$CI_COMMIT_REF_NAME
"
==
"
${
DOC_BRANCH
:-
master
}
"
]]
;
then
echo_color
"
$BOLDGREEN
"
"Publishing documentation from branch
$CI_COMMIT_REF_NAME
to
$DOC_DIR
"
# check if we have the secret
if
[[
-z
"
$DOC_KEY
"
]]
;
then
echo_color
"
$BOLDRED
"
"[buildjob] DOC_KEY variable is missing"
exit
1
fi
# We need a custom wrapper around SSH to use our settings, and ssh-agent for the key
eval
$(
ssh-agent
-s
)
echo
"
${
DOC_KEY
}
"
|
tr
-d
'\r'
| ssh-add -
export
GIT_SSH
=
$(
readlink
-e
ci/ssh
)
# Generate documentation
make html
# Upload documentation
rsync
-a
--delete
-e
"
$GIT_SSH
"
html/
"
$DOC_DIR
/"
fi
# maybe create opam package
if
[[
-n
"
$OPAM_PKG
"
&&
"
$CI_COMMIT_REF_NAME
"
==
"
${
OPAM_PKG_BRANCH
:-
master
}
"
]]
;
then
echo_color
"
$BOLDGREEN
"
"[buildjob] Releasing package on opam"
...
...
@@ -102,3 +76,29 @@ if [[ -n "$OPAM_PKG" && "$CI_COMMIT_REF_NAME" == "${OPAM_PKG_BRANCH:-master}" ]]
-F
"variables[OPAM_PREFIX]=
$OPAM_PKG_PREFIX
"
echo
# there's no newline here otherwise
fi
# maybe validate
if
[[
-n
"
$VALIDATE
"
]]
;
then
echo_color
"
$BOLDGREEN
"
"[buildjob] Performing validation"
make validate
fi
# maybe generate and upload documentation
if
[[
-n
"
$DOC_DIR
"
&&
"
$CI_COMMIT_REF_NAME
"
==
"
${
DOC_BRANCH
:-
master
}
"
]]
;
then
echo_color
"
$BOLDGREEN
"
"Publishing documentation from branch
$CI_COMMIT_REF_NAME
to
$DOC_DIR
"
# check if we have the secret
if
[[
-z
"
$DOC_KEY
"
]]
;
then
echo_color
"
$BOLDRED
"
"[buildjob] DOC_KEY variable is missing"
exit
1
fi
# We need a custom wrapper around SSH to use our settings, and ssh-agent for the key
eval
$(
ssh-agent
-s
)
echo
"
${
DOC_KEY
}
"
|
tr
-d
'\r'
| ssh-add -
export
GIT_SSH
=
$(
readlink
-e
ci/ssh
)
# Generate documentation
make html
# Upload documentation
rsync
-a
--delete
-e
"
$GIT_SSH
"
html/
"
$DOC_DIR
/"
fi
This diff is collapsed.
Click to expand it.
prepare-opam.sh
View file @
987ea45a
...
...
@@ -12,17 +12,21 @@ else
echo_color
"
$BOLDYELLOW
"
"[prepare-opam] Creating new opam root"
mkdir
"
$OPAMROOT
"
opam init
--no-setup
-y
FRESH_OPAM
=
yes
fi
eval
`
opam conf
env
`
# Make sure the pin for the builddep package exists and is up-to-date
make build-dep/opam
if
[[
-z
"
$FRESH_OPAM
"
]]
;
then
# skip if this is a fresh opam root
# Make sure the pin for the builddep package exists and is up-to-date.
# This avoids opam complaining about pins pointing to a non-existing file.
make build-dep/opam
# Update repositories
opam update
# Update repositories
opam update
fi
# Make sure we got the right set of repositories registered
if
echo
"
$@
"
|
f
grep
"dev"
>
/dev/null
;
then
if
echo
"
$@
"
|
e
grep
"
(
dev
|beta)
"
>
/dev/null
;
then
# We are compiling against a dev version of something. Get ourselves the dev repositories.
test
-d
"
$OPAMROOT
/repo/coq-extra-dev"
||
opam repo add coq-extra-dev https://coq.inria.fr/opam/extra-dev
-p
0
test
-d
"
$OPAMROOT
/repo/coq-core-dev"
||
opam repo add coq-core-dev https://coq.inria.fr/opam/core-dev
-p
5
...
...
@@ -56,10 +60,12 @@ while (( "$#" )); do # while there are arguments left
done
echo
# Upgrade cached things.
echo_color
"
$BOLDGREEN
"
"[prepare-opam] Upgrading packages"
opam upgrade
-y
--fixup
&&
opam upgrade
-y
echo
if
[[
-z
"
$FRESH_OPAM
"
]]
;
then
# skip if this is a fresh opam root
# Upgrade cached things
echo_color
"
$BOLDGREEN
"
"[prepare-opam] Upgrading packages"
opam upgrade
-y
--fixup
&&
opam upgrade
-y
echo
fi
# Install build-dependencies.
echo_color
"
$BOLDGREEN
"
"[prepare-opam] Installing build-dependencies"
...
...
This diff is collapsed.
Click to expand it.