Skip to content
Snippets Groups Projects
Commit da12cdfc authored by erwan's avatar erwan
Browse files

Add a gitlab CI pipeline

parent 1dc1ebdf
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -172,5 +172,5 @@ scade-manuel.pdf ...@@ -172,5 +172,5 @@ scade-manuel.pdf
src/TODO.org src/TODO.org
src/mli_save/ src/mli_save/
Makefile.version
image: ocaml/opam:ubuntu
variables:
GIT_STRATEGY: clone
stages:
- build
- test
build:
stage: build
script:
- opam repo add verimag-sync-repo "http://www-verimag.imag.fr/DIST-TOOLS/SYNCHRONE/opam-repository"
- opam update
- opam install -y camlp4 ocamlfind oasis extlib
- opam install rdbg
- make
- make install
test_opam_test:
stage: test
script:
- opam repo add verimag-sync-repo "http://www-verimag.imag.fr/DIST-TOOLS/SYNCHRONE/test/opam-repository"
- opam update
- opam install -y lustre-v6
all:build all:build man
build: setup.data src/lv6version.ml build: setup.data src/lv6version.ml
ocaml setup.ml -build ocaml setup.ml -build
include ./Makefile.version -include ./Makefile.version
setup.ml:_oasis setup.ml:_oasis
oasis setup oasis setup
PROF=--enable-profile PROF=--enable-profile
PROF=--disable-profile PROF=--disable-profile
BINPATH=$(shell dirname `which ocamlc`)/.. BINPATH=$(shell opam config var prefix)
LIBPATH=$(shell ocamlc -where)/../lustre-v6/
setup.data:setup.ml setup.data:setup.ml
ocaml setup.ml -configure $(PROF) --prefix $(BINPATH) --exec-prefix $(BINPATH) ocaml setup.ml -configure $(PROF) --prefix $(BINPATH)
install:install-man install:
ocaml setup.ml -install ocaml setup.ml -install
uninstall: uninstall:
...@@ -33,10 +32,7 @@ distclean: ...@@ -33,10 +32,7 @@ distclean:
ocaml setup.ml -distclean ocaml setup.ml -distclean
man: man:
cd lv6-ref-man && make cd lv6-ref-man && make || echo "*** ref manual building failed"
install-man: man
cp lv6-ref-man/lv6-ref-man.pdf $(LIBPATH) || true
############################### ###############################
......
...@@ -35,12 +35,15 @@ README.md: README.txt ...@@ -35,12 +35,15 @@ README.md: README.txt
####################################################################################### #######################################################################################
# Workflow: # Workflow:
# C=git commit ; A=git amend ; U=update_version ; P=opam pack # C=git commit ; A=git amend ; U=update_version ; P=opam pack
# to make sure the sha and the version are good, one should never # - to make sure the sha and the version are good, one should never
# do U and then A. # do U and then A.
# to avoid such problems, legal trace are defined by this automata: # - to make sure gtit is not confused, one should never do A and the P
#
# thereforeto avoid such problems, legal trace are defined by this automata:
# 0 -C-> 1 # 0 -C-> 1
# 1 -P-> 1
# 1 -A-> 1 # 1 -A-> 1
# 1 -P-> 2
# 2 -U-> 0
# 1 -U-> 0 # 1 -U-> 0
# to implement such a workflow, C puts a lock (state 1) and U removes it (state 0) # to implement such a workflow, C puts a lock (state 1) and U removes it (state 0)
...@@ -58,12 +61,11 @@ update_version: ...@@ -58,12 +61,11 @@ update_version:
cia: cia:
test -f committed && \ test -f committed && \
echo "*** I won't commit!\n*** until you 'make update_version'!" \ echo "*** I won't commit!\n*** until you 'make update_version'!" \
|| (git commit -a -F log && touch committed) || (git commit -a -F log && touch committed) && echo "Hint: 'make ci' to test the CI before doing 'make 'push'"
ci:
test -f committed && \ push: opam-test
echo "*** I won't commit!\n*** until you 'make update_version'!" \ git push && make uv
|| (git commit -F log && touch committed)
amend: amend:
test -f committed && git commit -a -F log --amend test -f committed && git commit -a -F log --amend
......
File moved
OASISFormat: 0.4 OASISFormat: 0.4
Name: lustre-v6 Name: lustre-v6
Version: 1.726 Version: 1.728
Synopsis: The Lustre V6 Verimag compiler Synopsis: The Lustre V6 Verimag compiler
Description: This package contains: Description: This package contains:
- lus2lic: the (current) name of the compiler (and interpreter via -exec) - lus2lic: the (current) name of the compiler (and interpreter via -exec)
......
File added
(** Automatically generated from Makefile *) (** Automatically generated from Makefile *)
let tool = "lus2lic" let tool = "lus2lic"
let branch = "master" let branch = "master"
let commit = "726" let commit = "728"
let sha_1 = "45684e24424db1b7777b3b53d795035b3e25009c" let sha_1 = "1dc1ebdf000ae91e09b6716ecc593a82c568efc9"
let str = (branch ^ "." ^ commit ^ " (" ^ sha_1 ^ ")") let str = (branch ^ "." ^ commit ^ " (" ^ sha_1 ^ ")")
let maintainer = "erwan.jahier@univ-grenoble-alpes.fr" let maintainer = "erwan.jahier@univ-grenoble-alpes.fr"
../lus2lic ../_build/src/main.native
\ No newline at end of file \ No newline at end of file
==> lus2lic0.sum <== ==> lus2lic0.sum <==
Test Run By jahier on Thu Nov 30 16:36:40 Test Run By jahier on Thu Dec 14 10:43:54
Native configuration is x86_64-unknown-linux-gnu Native configuration is x86_64-unknown-linux-gnu
=== lus2lic0 tests === === lus2lic0 tests ===
...@@ -66,7 +66,7 @@ XFAIL: Test bad programs (assert): test_lus2lic_no_node should_fail/assert/lecte ...@@ -66,7 +66,7 @@ XFAIL: Test bad programs (assert): test_lus2lic_no_node should_fail/assert/lecte
XFAIL: Test bad programs (assert): test_lus2lic_no_node should_fail/assert/s.lus XFAIL: Test bad programs (assert): test_lus2lic_no_node should_fail/assert/s.lus
==> lus2lic1.sum <== ==> lus2lic1.sum <==
Test Run By jahier on Thu Nov 30 16:36:41 Test Run By jahier on Thu Dec 14 10:43:54
Native configuration is x86_64-unknown-linux-gnu Native configuration is x86_64-unknown-linux-gnu
=== lus2lic1 tests === === lus2lic1 tests ===
...@@ -263,9 +263,6 @@ PASS: /home/jahier/lus2lic/test/../utils/compare_exec_and_2c ec.lus {} ...@@ -263,9 +263,6 @@ PASS: /home/jahier/lus2lic/test/../utils/compare_exec_and_2c ec.lus {}
PASS: ./lus2lic {-2c enum0.lus -n enum0} PASS: ./lus2lic {-2c enum0.lus -n enum0}
PASS: sh enum0.sh PASS: sh enum0.sh
PASS: /home/jahier/lus2lic/test/../utils/compare_exec_and_2c enum0.lus {} PASS: /home/jahier/lus2lic/test/../utils/compare_exec_and_2c enum0.lus {}
PASS: ./lus2lic {-2c enum0_lv4.lus -n enum0_lv4}
PASS: sh enum0_lv4.sh
PASS: /home/jahier/lus2lic/test/../utils/compare_exec_and_2c enum0_lv4.lus {}
PASS: ./lus2lic {-2c ex.lus -n ex} PASS: ./lus2lic {-2c ex.lus -n ex}
PASS: sh ex.sh PASS: sh ex.sh
PASS: /home/jahier/lus2lic/test/../utils/compare_exec_and_2c ex.lus {} PASS: /home/jahier/lus2lic/test/../utils/compare_exec_and_2c ex.lus {}
...@@ -412,7 +409,7 @@ PASS: sh multipar.sh ...@@ -412,7 +409,7 @@ PASS: sh multipar.sh
PASS: /home/jahier/lus2lic/test/../utils/compare_exec_and_2c multipar.lus {} PASS: /home/jahier/lus2lic/test/../utils/compare_exec_and_2c multipar.lus {}
==> lus2lic2.sum <== ==> lus2lic2.sum <==
Test Run By jahier on Thu Nov 30 16:37:22 Test Run By jahier on Thu Dec 14 10:44:35
Native configuration is x86_64-unknown-linux-gnu Native configuration is x86_64-unknown-linux-gnu
=== lus2lic2 tests === === lus2lic2 tests ===
...@@ -752,7 +749,7 @@ PASS: sh zzz2.sh ...@@ -752,7 +749,7 @@ PASS: sh zzz2.sh
PASS: /home/jahier/lus2lic/test/../utils/compare_exec_and_2c zzz2.lus {} PASS: /home/jahier/lus2lic/test/../utils/compare_exec_and_2c zzz2.lus {}
==> lus2lic3.sum <== ==> lus2lic3.sum <==
Test Run By jahier on Thu Nov 30 16:38:08 Test Run By jahier on Thu Dec 14 10:45:40
Native configuration is x86_64-unknown-linux-gnu Native configuration is x86_64-unknown-linux-gnu
=== lus2lic3 tests === === lus2lic3 tests ===
...@@ -1036,10 +1033,6 @@ PASS: /home/jahier/lus2lic/test/../utils/test_lus2lic_no_node ec.lus {} ...@@ -1036,10 +1033,6 @@ PASS: /home/jahier/lus2lic/test/../utils/test_lus2lic_no_node ec.lus {}
PASS: ./lus2lic {} {-o enum0.lic enum0.lus} PASS: ./lus2lic {} {-o enum0.lic enum0.lus}
PASS: ./lus2lic {-ec -o enum0.ec enum0.lus} PASS: ./lus2lic {-ec -o enum0.ec enum0.lus}
PASS: ./myec2c {-o enum0.c enum0.ec} PASS: ./myec2c {-o enum0.c enum0.ec}
PASS: ./lus2lic {} {-o enum0_lv4.lic enum0_lv4.lus}
PASS: ./lus2lic {-ec -o enum0_lv4.ec enum0_lv4.lus}
PASS: ./myec2c {-o enum0_lv4.c enum0_lv4.ec}
PASS: /home/jahier/lus2lic/test/../utils/test_lus2lic_no_node enum0_lv4.lus {}
PASS: ./lus2lic {} {-o ex.lic ex.lus} PASS: ./lus2lic {} {-o ex.lic ex.lus}
PASS: ./lus2lic {-ec -o ex.ec ex.lus} PASS: ./lus2lic {-ec -o ex.ec ex.lus}
PASS: ./myec2c {-o ex.c ex.ec} PASS: ./myec2c {-o ex.c ex.ec}
...@@ -1214,7 +1207,6 @@ PASS: ./lus2lic {} {-o modes3x2_v3.lic modes3x2_v3.lus} ...@@ -1214,7 +1207,6 @@ PASS: ./lus2lic {} {-o modes3x2_v3.lic modes3x2_v3.lus}
PASS: ./lus2lic {-ec -o modes3x2_v3.ec modes3x2_v3.lus} PASS: ./lus2lic {-ec -o modes3x2_v3.ec modes3x2_v3.lus}
PASS: ./lus2lic {} {-o modes3x2_v4.lic modes3x2_v4.lus} PASS: ./lus2lic {} {-o modes3x2_v4.lic modes3x2_v4.lus}
PASS: ./lus2lic {-ec -o modes3x2_v4.ec modes3x2_v4.lus} PASS: ./lus2lic {-ec -o modes3x2_v4.ec modes3x2_v4.lus}
FAIL: without any option: ./lus2lic {} {-o modes3x2_v4.lv4.lic modes3x2_v4.lv4.lus}
PASS: ./lus2lic {} {-o morel.lic morel.lus} PASS: ./lus2lic {} {-o morel.lic morel.lus}
PASS: ./lus2lic {-ec -o morel.ec morel.lus} PASS: ./lus2lic {-ec -o morel.ec morel.lus}
PASS: ./myec2c {-o morel.c morel.ec} PASS: ./myec2c {-o morel.c morel.ec}
...@@ -1266,7 +1258,7 @@ PASS: /home/jahier/lus2lic/test/../utils/test_lus2lic_no_node multipar.lus {} ...@@ -1266,7 +1258,7 @@ PASS: /home/jahier/lus2lic/test/../utils/test_lus2lic_no_node multipar.lus {}
==> lus2lic4.sum <== ==> lus2lic4.sum <==
Test Run By jahier on Thu Nov 30 16:39:08 Test Run By jahier on Thu Dec 14 10:46:44
Native configuration is x86_64-unknown-linux-gnu Native configuration is x86_64-unknown-linux-gnu
=== lus2lic4 tests === === lus2lic4 tests ===
...@@ -1758,7 +1750,7 @@ PASS: /home/jahier/lus2lic/test/../utils/test_lus2lic_no_node zzz2.lus {} ...@@ -1758,7 +1750,7 @@ PASS: /home/jahier/lus2lic/test/../utils/test_lus2lic_no_node zzz2.lus {}
=== lus2lic1 Summary === === lus2lic1 Summary ===
# of expected passes 333 # of expected passes 330
# of unexpected failures 1 # of unexpected failures 1
==> lus2lic2.sum <== ==> lus2lic2.sum <==
...@@ -1771,8 +1763,8 @@ PASS: /home/jahier/lus2lic/test/../utils/test_lus2lic_no_node zzz2.lus {} ...@@ -1771,8 +1763,8 @@ PASS: /home/jahier/lus2lic/test/../utils/test_lus2lic_no_node zzz2.lus {}
==> lus2lic3.sum <== ==> lus2lic3.sum <==
=== lus2lic3 Summary === === lus2lic3 Summary ===
# of expected passes 494 # of expected passes 490
# of unexpected failures 6 # of unexpected failures 5
# of unresolved testcases 1 # of unresolved testcases 1
==> lus2lic4.sum <== ==> lus2lic4.sum <==
...@@ -1782,15 +1774,15 @@ PASS: /home/jahier/lus2lic/test/../utils/test_lus2lic_no_node zzz2.lus {} ...@@ -1782,15 +1774,15 @@ PASS: /home/jahier/lus2lic/test/../utils/test_lus2lic_no_node zzz2.lus {}
# of expected passes 465 # of expected passes 465
# of unexpected failures 6 # of unexpected failures 6
=============================== ===============================
# Total number of failures: 14 # Total number of failures: 13
lus2lic0.log:testcase ./lus2lic.tests/test0.exp completed in 0 seconds lus2lic0.log:testcase ./lus2lic.tests/test0.exp completed in 0 seconds
lus2lic1.log:testcase ./lus2lic.tests/test1.exp completed in 41 seconds lus2lic1.log:testcase ./lus2lic.tests/test1.exp completed in 40 seconds
lus2lic2.log:testcase ./lus2lic.tests/test2.exp completed in 46 seconds lus2lic2.log:testcase ./lus2lic.tests/test2.exp completed in 64 seconds
lus2lic3.log:testcase ./lus2lic.tests/test3.exp completed in 60 seconds lus2lic3.log:testcase ./lus2lic.tests/test3.exp completed in 64 seconds
lus2lic4.log:testcase ./lus2lic.tests/test4.exp completed in 33 seconds lus2lic4.log:testcase ./lus2lic.tests/test4.exp completed in 33 seconds
* Ref time: * Ref time:
122.26user 26.12system 3:00.36elapsed 82%CPU (0avgtext+0avgdata 283484maxresident)k 139.67user 28.91system 3:22.88elapsed 83%CPU (0avgtext+0avgdata 283556maxresident)k
0inputs+6103384outputs (0major+18029696minor)pagefaults 0swaps 0inputs+6051504outputs (0major+17946258minor)pagefaults 0swaps
* Quick time (-j 4): * Quick time (-j 4):
164.84user 31.99system 2:17.06elapsed 143%CPU (0avgtext+0avgdata 283480maxresident)k 152.33user 30.75system 1:52.17elapsed 163%CPU (0avgtext+0avgdata 283420maxresident)k
4144inputs+5983920outputs (3major+17743590minor)pagefaults 0swaps 32inputs+5902328outputs (0major+17567460minor)pagefaults 0swaps
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment