Commit 21537ba3 authored by Raphael Rieu-Helft's avatar Raphael Rieu-Helft

Test the IDE and doc compilation during CI

parent 4738e641
...@@ -38,12 +38,12 @@ bench: ...@@ -38,12 +38,12 @@ bench:
variables: variables:
COMPILER: system COMPILER: system
script: script:
- misc/ci-docker.sh misc/ci-local.sh bench - misc/ci-docker.sh misc/ci-local.sh bench ide
.bench_template: &bench_definition .bench_template: &bench_definition
stage: test stage: test
script: script:
- misc/ci-docker.sh misc/ci-local.sh bench - misc/ci-docker.sh misc/ci-local.sh bench ide
only: only:
- tags - tags
- schedules - schedules
...@@ -72,9 +72,10 @@ full: ...@@ -72,9 +72,10 @@ full:
stage: test stage: test
variables: variables:
COMPILER: system 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: script:
- misc/ci-docker.sh misc/ci-local.sh bench - misc/ci-docker.sh misc/ci-local.sh bench ide doc
opam: opam:
stage: build stage: build
......
FROM ocaml/ocaml:debian-stable FROM ocaml/ocaml:debian-stable
# install dependencies # install dependencies
ARG debian_packages
RUN apt-get update && \ 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 # create user
RUN sudo adduser --disabled-password --gecos '' why3 RUN sudo adduser --disabled-password --gecos '' why3
...@@ -14,5 +15,5 @@ ARG compiler=system ...@@ -14,5 +15,5 @@ ARG compiler=system
RUN opam init -a -y -j1 --compiler=$compiler RUN opam init -a -y -j1 --compiler=$compiler
RUN opam repository add coq-released https://coq.inria.fr/opam/released RUN opam repository add coq-released https://coq.inria.fr/opam/released
ARG packages ARG opam_packages
RUN opam install -y menhir conf-gtksourceview lablgtk ocamlgraph zarith camlzip alt-ergo $packages RUN opam install -y menhir conf-gtksourceview lablgtk ocamlgraph zarith camlzip alt-ergo $opam_packages
...@@ -3,12 +3,12 @@ ...@@ -3,12 +3,12 @@
set -e set -e
autoconf && (automake --add-missing 2> /dev/null || true) autoconf && (automake --add-missing 2> /dev/null || true)
if test -n "$PACKAGES"; then if test -n "$DEBIAN_PACKAGES" -o -n "$OPAM_PACKAGES"; then
IMAGE=bench-image-$COMPILER--$(echo $PACKAGES | sed -e 's/ /--/g') IMAGE=bench-image-$COMPILER--$(echo $DEBIAN_PACKAGES | sed -e 's/ /--/g')--$(echo $OPAM_PACKAGES | sed -e 's/ /--/g')
else else
IMAGE=bench-image-$COMPILER IMAGE=bench-image-$COMPILER
fi 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) CID=$(docker create --rm -i -w /home/why3/why3 $IMAGE /bin/sh)
docker start $CID docker start $CID
docker cp . $CID:/home/why3/why3 docker cp . $CID:/home/why3/why3
......
...@@ -21,7 +21,19 @@ eval `opam config env` ...@@ -21,7 +21,19 @@ eval `opam config env`
./configure --enable-local ./configure --enable-local
make make
if test "$1" = bench; then while test $# -gt 0
bin/why3config --detect-provers do
make bench case "$1" in
fi bench)
bin/why3config --detect-provers
make bench
;;
ide)
WHY3CONFIG="" xvfb-run bin/why3 ide --batch "" examples/logic/einstein.why
;;
doc)
make doc
;;
esac
shift
done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment