Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Why3
why3
Commits
a6a76237
Commit
a6a76237
authored
Mar 27, 2018
by
Guillaume Melquiond
Browse files
Remove the init stage and make other stages a bit more generic.
parent
5d2dd10f
Changes
3
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
a6a76237
stages
:
-
init
-
build
-
test
-
deploy
-
build
-
test
-
deploy
variables
:
DEPLOY_TAG
:
registry.gitlab.inria.fr/why3/why3:latest
init
:
stage
:
init
script
:
-
docker build -t bench-image -f misc/Dockerfile.init .
.init_template
:
&init_definition
stage
:
init
.build_template
:
&build_definition
stage
:
build
script
:
-
docker build -t bench-image-$COMPILER -f misc/Dockerfile.init --build-arg compiler=$COMPILER .
init-4.03.0
:
variables
:
COMPILER
:
4.03.0
<<
:
*init_definition
init-4.04.0
:
variables
:
COMPILER
:
4.04.0
<<
:
*init_definition
init-4.05.0
:
variables
:
COMPILER
:
4.05.0
<<
:
*init_definition
init-4.06.0
:
variables
:
COMPILER
:
4.06.0
<<
:
*init_definition
-
docker run -t --rm bench-image-$COMPILER misc/ci-local.sh
build
:
stage
:
build
script
:
-
docker run -t --rm bench-image misc/build.sh
.build_template
:
&build_definition
stage
:
build
script
:
-
docker run -t --rm bench-image-$COMPILER misc/build.sh
variables
:
COMPILER
:
system
<<
:
*build_definition
build-4.03.0
:
variables
:
...
...
@@ -69,13 +36,17 @@ build-4.06.0:
bench
:
stage
:
test
variables
:
COMPILER
:
system
script
:
-
docker run -t --rm bench-image misc/ci-bench.sh
-
docker build -t bench-image-$COMPILER -f misc/Dockerfile.init --build-arg compiler=$COMPILER .
-
docker run -t --rm bench-image-$COMPILER misc/ci-local.sh bench
.bench_template
:
&bench_definition
stage
:
test
script
:
-
docker run -t --rm bench-image-$COMPILER misc/ci-bench.sh
-
docker build -t bench-image-$COMPILER -f misc/Dockerfile.init --build-arg compiler=$COMPILER .
-
docker run -t --rm bench-image-$COMPILER misc/ci-local.sh bench
only
:
-
tags
-
schedules
...
...
@@ -103,9 +74,9 @@ bench-4.06.0:
deploy
:
stage
:
deploy
script
:
-
docker login -u gitlab-ci-token -p $CI_JOB_TOKEN
registry.gitlab.inria.fr
-
docker login -u gitlab-ci-token -p $CI_JOB_TOKEN
$CI_REGISTRY
-
docker build -t deploy-image -f misc/Dockerfile.deploy .
-
docker tag deploy-image $
DEPLOY_TA
G
-
docker push $
DEPLOY_TA
G
-
docker tag deploy-image $
CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLU
G
-
docker push $
CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLU
G
only
:
-
master
\ No newline at end of file
-
master
misc/build.sh
deleted
100755 → 0
View file @
5d2dd10f
#!/bin/bash
set
-e
eval
`
opam config
env
`
# configuration
autoconf
automake
--add-missing
2> /dev/null
||
true
./configure
--enable-local
# compilation
make
-j2
misc/ci-
bench
.sh
→
misc/ci-
local
.sh
View file @
a6a76237
...
...
@@ -25,8 +25,12 @@ automake --add-missing 2> /dev/null || true
# compilation
make
-j2
if
test
"
$1
"
=
bench
;
then
# detection of provers
bin/why3config
--detect-provers
# run the bench
make bench
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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