Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
why3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Why3
why3
Commits
21537ba3
Commit
21537ba3
authored
7 years ago
by
Raphaël Rieu-Helft
Browse files
Options
Downloads
Patches
Plain Diff
Test the IDE and doc compilation during CI
parent
4738e641
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitlab-ci.yml
+5
-4
5 additions, 4 deletions
.gitlab-ci.yml
misc/Dockerfile.init
+4
-3
4 additions, 3 deletions
misc/Dockerfile.init
misc/ci-docker.sh
+3
-3
3 additions, 3 deletions
misc/ci-docker.sh
misc/ci-local.sh
+16
-4
16 additions, 4 deletions
misc/ci-local.sh
with
28 additions
and
14 deletions
.gitlab-ci.yml
+
5
−
4
View file @
21537ba3
...
...
@@ -38,12 +38,12 @@ bench:
variables
:
COMPILER
:
system
script
:
-
misc/ci-docker.sh misc/ci-local.sh bench
-
misc/ci-docker.sh misc/ci-local.sh bench
ide
.bench_template
:
&bench_definition
stage
:
test
script
:
-
misc/ci-docker.sh misc/ci-local.sh bench
-
misc/ci-docker.sh misc/ci-local.sh bench
ide
only
:
-
tags
-
schedules
...
...
@@ -72,9 +72,10 @@ full:
stage
:
test
variables
:
COMPILER
:
system
PACKAGES
:
coq-flocq.2.6.1 js_of_ocaml-ppx
DEBIAN_PACKAGES
:
hevea rubber texlive-latex-extra
OPAM_PACKAGES
:
coq-flocq.2.6.1 js_of_ocaml-ppx
script
:
-
misc/ci-docker.sh misc/ci-local.sh bench
-
misc/ci-docker.sh misc/ci-local.sh bench
ide doc
opam
:
stage
:
build
...
...
This diff is collapsed.
Click to expand it.
misc/Dockerfile.init
+
4
−
3
View file @
21537ba3
FROM ocaml/ocaml:debian-stable
# install dependencies
ARG debian_packages
RUN apt-get update && \
apt-get install -y wget libgmp-dev gtk+-2.0 libgtksourceview2.0-dev gnome-themes-standard libcanberra-gtk-module opam
apt-get install -y wget libgmp-dev gtk+-2.0 libgtksourceview2.0-dev gnome-themes-standard libcanberra-gtk-module opam
xvfb $debian_packages
# create user
RUN sudo adduser --disabled-password --gecos '' why3
...
...
@@ -14,5 +15,5 @@ ARG compiler=system
RUN opam init -a -y -j1 --compiler=$compiler
RUN opam repository add coq-released https://coq.inria.fr/opam/released
ARG packages
RUN opam install -y menhir conf-gtksourceview lablgtk ocamlgraph zarith camlzip alt-ergo $packages
ARG
opam_
packages
RUN opam install -y menhir conf-gtksourceview lablgtk ocamlgraph zarith camlzip alt-ergo $
opam_
packages
This diff is collapsed.
Click to expand it.
misc/ci-docker.sh
+
3
−
3
View file @
21537ba3
...
...
@@ -3,12 +3,12 @@
set
-e
autoconf
&&
(
automake
--add-missing
2> /dev/null
||
true
)
if
test
-n
"
$PACKAGES
"
;
then
IMAGE
=
bench-image-
$COMPILER
--
$(
echo
$PACKAGES
|
sed
-e
's/ /--/g'
)
if
test
-n
"
$
DEBIAN_PACKAGES
"
-o
-n
"
$OPAM_
PACKAGES
"
;
then
IMAGE
=
bench-image-
$COMPILER
--
$(
echo
$
DEBIAN_PACKAGES
|
sed
-e
's/ /--/g'
)
--
$(
echo
$OPAM_
PACKAGES
|
sed
-e
's/ /--/g'
)
else
IMAGE
=
bench-image-
$COMPILER
fi
docker build
-t
$IMAGE
-f
misc/Dockerfile.init
--build-arg
compiler
=
$COMPILER
--build-arg
packages
=
"
$PACKAGES
"
.
docker build
-t
$IMAGE
-f
misc/Dockerfile.init
--build-arg
compiler
=
$COMPILER
--build-arg
debian_
packages
=
"
$
DEBIAN_PACKAGES
"
--build-arg
opam_packages
=
"
$OPAM_
PACKAGES
"
.
CID
=
$(
docker create
--rm
-i
-w
/home/why3/why3
$IMAGE
/bin/sh
)
docker start
$CID
docker
cp
.
$CID
:/home/why3/why3
...
...
This diff is collapsed.
Click to expand it.
misc/ci-local.sh
+
16
−
4
View file @
21537ba3
...
...
@@ -21,7 +21,19 @@ eval `opam config env`
./configure
--enable-local
make
if
test
"
$1
"
=
bench
;
then
while
test
$#
-gt
0
do
case
"
$1
"
in
bench
)
bin/why3config
--detect-provers
make bench
fi
;;
ide
)
WHY3CONFIG
=
""
xvfb-run bin/why3 ide
--batch
""
examples/logic/einstein.why
;;
doc
)
make doc
;;
esac
shift
done
This diff is collapsed.
Click to expand it.
Raphaël Rieu-Helft
@rrieuhel
mentioned in issue
#129 (closed)
·
7 years ago
mentioned in issue
#129 (closed)
mentioned in issue #129
Toggle commit list
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