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
2cc7b4d8
Commit
2cc7b4d8
authored
7 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
update CI: use dedicated buildjob script, submit timing information to coq-speed
parent
5361ad82
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
+6
-17
6 additions, 17 deletions
.gitlab-ci.yml
benchmark/export.py
+1
-1
1 addition, 1 deletion
benchmark/export.py
ci
+1
-1
1 addition, 1 deletion
ci
with
8 additions
and
19 deletions
.gitlab-ci.yml
+
6
−
17
View file @
2cc7b4d8
...
@@ -5,30 +5,21 @@ stages:
...
@@ -5,30 +5,21 @@ stages:
variables
:
variables
:
CPU_CORES
:
"
10"
CPU_CORES
:
"
10"
GIT_SUBMODULE_STRATEGY
:
recursive
MAIN_BRANCH
:
"
master"
GIT_SUBMODULE_STRATEGY
:
"
recursive"
.template
:
&template
.template
:
&template
stage
:
build
stage
:
build
tags
:
tags
:
-
fp
-
fp
script
:
script
:
# prepare
-
ci/buildjob
-
. ci/prepare-opam $OPAM_PINS
-
env | egrep '^(CI_BUILD_REF|CI_RUNNER)' > build-env.txt
# build
-
'
time
make
-k
-j$CPU_CORES
TIMED=y
2>&1
|
tee
build-log.txt'
-
'
if
fgrep
Axiom
build-log.txt
>/dev/null;
then
exit
1;
fi'
-
'
cat
build-log.txt
|
egrep
"[a-zA-Z0-9_/-]+
\((real|user):
[0-9]"
|
tee
build-time.txt'
# maybe validate
-
'
if
[[
-n
"$VALIDATE"
]];
then
make
validate;
fi'
# maybe create opam package
-
'
if
[[
-n
"$OPAM_PKG"
&&
"$CI_COMMIT_REF_NAME"
==
master
]];
then
curl
--fail
-X
POST
-F
"token=$OPAM_UPDATE_SECRET"
-F
"ref=master"
-F
"variables[REPO]=$CI_PROJECT_URL.git"
-F
"variables[REF]=$CI_COMMIT_REF_NAME"
-F
"variables[SHA]=$CI_COMMIT_SHA"
-F
"variables[NAME]=$OPAM_PKG"
https://gitlab.mpi-sws.org/api/v4/projects/581/trigger/pipeline;
fi'
cache
:
cache
:
key
:
"
$CI_JOB_NAME"
key
:
"
$CI_JOB_NAME"
paths
:
paths
:
-
opamroot/
-
opamroot/
only
:
only
:
-
master
-
"
$MAIN_BRANCH"
-
/^ci/
-
/^ci/
except
:
except
:
-
triggers
-
triggers
...
@@ -47,12 +38,10 @@ build-coq.8.7.2:
...
@@ -47,12 +38,10 @@ build-coq.8.7.2:
variables
:
variables
:
OPAM_PINS
:
"
coq
version
8.7.2
coq-mathcomp-ssreflect
version
1.6.4"
OPAM_PINS
:
"
coq
version
8.7.2
coq-mathcomp-ssreflect
version
1.6.4"
OPAM_PKG
:
"
coq-iris"
OPAM_PKG
:
"
coq-iris"
TIMING_PROJECT
:
"
iris"
TIMING_CONF
:
"
coq-8.7.2"
tags
:
tags
:
-
fp-timing
-
fp-timing
artifacts
:
paths
:
-
build-time.txt
-
build-env.txt
build-coq.8.7.1
:
build-coq.8.7.1
:
<<
:
*template
<<
:
*template
...
...
This diff is collapsed.
Click to expand it.
benchmark/export.py
+
1
−
1
View file @
2cc7b4d8
...
@@ -45,6 +45,6 @@ for datapoint in results:
...
@@ -45,6 +45,6 @@ for datapoint in results:
print
(
"
Sending {}...
"
.
format
(
commit
),
end
=
''
)
print
(
"
Sending {}...
"
.
format
(
commit
),
end
=
''
)
date
=
subprocess
.
check_output
([
'
git
'
,
'
show
'
,
commit
,
'
-s
'
,
'
--pretty=%cI
'
]).
strip
().
decode
(
'
UTF-8
'
)
date
=
subprocess
.
check_output
([
'
git
'
,
'
show
'
,
commit
,
'
-s
'
,
'
--pretty=%cI
'
]).
strip
().
decode
(
'
UTF-8
'
)
headers
=
{
'
X-Project
'
:
args
.
project
,
'
X-Branch
'
:
args
.
branch
,
'
X-Commit
'
:
commit
,
'
X-Config
'
:
args
.
config
,
'
X-Date
'
:
date
}
headers
=
{
'
X-Project
'
:
args
.
project
,
'
X-Branch
'
:
args
.
branch
,
'
X-Commit
'
:
commit
,
'
X-Config
'
:
args
.
config
,
'
X-Date
'
:
date
}
r
=
requests
.
post
(
args
.
server
+
"
/build_times
_8.6
"
,
data
=
times
,
headers
=
headers
,
auth
=
(
args
.
user
,
args
.
password
))
r
=
requests
.
post
(
args
.
server
+
"
/build_times
"
,
data
=
times
,
headers
=
headers
,
auth
=
(
args
.
user
,
args
.
password
))
print
(
"
{}
"
.
format
(
r
.
text
.
strip
()))
print
(
"
{}
"
.
format
(
r
.
text
.
strip
()))
r
.
raise_for_status
()
r
.
raise_for_status
()
This diff is collapsed.
Click to expand it.
ci
@
60286c6b
Compare
799685e2
...
60286c6b
Subproject commit
799685e2c96af0e3c0a39e4584633affe55df051
Subproject commit
60286c6bb8a9f9ec21f0097530ccd39c9fc44930
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