Skip to content
Snippets Groups Projects
Commit a5f0e4d9 authored by Allan Blanchard's avatar Allan Blanchard
Browse files

[ci] check headers

parent c4c10c21
No related branches found
No related tags found
No related merge requests found
...@@ -44,6 +44,15 @@ frama-c: ...@@ -44,6 +44,15 @@ frama-c:
tags: tags:
- nix - nix
header-check:
stage: build
script:
- ls -la
- nix-shell nix/pkgs.nix -A ocaml-ng.ocamlPackages_4_12.frama-c-checkers-shell
--run 'FRAMAC_HDRCK="" make -f share/Makefile.headers check-headers'
tags:
- nix
# ivette: # ivette:
# stage: build # stage: build
# image: node:lts-gallium # image: node:lts-gallium
......
{ lib
, stdenv
, frama-c-hdrck
, git
, gnumake
, headache
, ocp-indent
} :
stdenv.mkDerivation rec {
name = "frama-c-checkers-shell";
buildInputs = [
frama-c-hdrck
git
gnumake
headache
ocp-indent
];
}
{ lib
, stdenv
, dune_3
, gitignoreSource
, ocaml
} :
stdenv.mkDerivation rec {
pname = "frama-c-hdrck";
version =
lib.strings.replaceStrings ["~"] ["-"]
(lib.strings.removeSuffix "\n"
(builtins.readFile ../VERSION));
slang = lib.strings.removeSuffix "\n" (builtins.readFile ../VERSION_CODENAME);
src = gitignoreSource ./../headers ;
buildInputs = [
dune_3
ocaml
];
configurePhase = ''
true
'';
buildPhase = ''
dune build --root .
'';
installPhase = ''
dune install --prefix $out --root .
'';
}
...@@ -10,12 +10,21 @@ let ...@@ -10,12 +10,21 @@ let
odoc = oself.callPackage ./odoc.nix {}; odoc = oself.callPackage ./odoc.nix {};
psmt2-frontend = oself.callPackage ./psmt2-frontend.nix {}; psmt2-frontend = oself.callPackage ./psmt2-frontend.nix {};
why3 = oself.callPackage ./why3.nix {}; why3 = oself.callPackage ./why3.nix {};
# Helpers # Helpers
mk_tests = oself.callPackage ./mk_tests.nix {}; mk_tests = oself.callPackage ./mk_tests.nix {};
mk_plugin = oself.callPackage ./mk_plugin.nix {}; mk_plugin = oself.callPackage ./mk_plugin.nix {};
# Shell containing checkers (hdrck, ocp-indent)
frama-c-checkers-shell = oself.callPackage ./frama-c-checkers-shell.nix {
git = pkgs.git ;
};
# Builds # Builds
frama-c = oself.callPackage ./frama-c.nix {}; frama-c = oself.callPackage ./frama-c.nix {};
frama-c-hdrck = oself.callPackage ./frama-c-hdrck.nix {};
lint = oself.callPackage ./lint.nix {}; lint = oself.callPackage ./lint.nix {};
# Tests # Tests
default-config-tests = oself.callPackage ./default-config-tests.nix {}; default-config-tests = oself.callPackage ./default-config-tests.nix {};
e-acsl-tests = oself.callPackage ./e-acsl-tests.nix {}; e-acsl-tests = oself.callPackage ./e-acsl-tests.nix {};
...@@ -24,8 +33,10 @@ let ...@@ -24,8 +33,10 @@ let
kernel-tests = oself.callPackage ./kernel-tests.nix {}; kernel-tests = oself.callPackage ./kernel-tests.nix {};
plugins-tests = oself.callPackage ./plugins-tests.nix {}; plugins-tests = oself.callPackage ./plugins-tests.nix {};
wp-tests = oself.callPackage ./wp-tests.nix {}; wp-tests = oself.callPackage ./wp-tests.nix {};
# Internal tests # Internal tests
internal-tests = oself.callPackage ./internal-tests.nix {}; internal-tests = oself.callPackage ./internal-tests.nix {};
# Release # Release
api-doc = oself.callPackage ./api-doc.nix {}; api-doc = oself.callPackage ./api-doc.nix {};
manuals = oself.callPackage ./manuals.nix {}; manuals = oself.callPackage ./manuals.nix {};
......
...@@ -67,7 +67,7 @@ HDRCK_EXTRA?= ...@@ -67,7 +67,7 @@ HDRCK_EXTRA?=
## Command used to execute hdrck ## Command used to execute hdrck
# Note: the public name of hdrck.exe is frama-c-hdrck # Note: the public name of hdrck.exe is frama-c-hdrck
ifeq ($(FRAMAC_HDRCK),"") ifeq ($(FRAMAC_HDRCK),)
# HDRCK is external # HDRCK is external
HDRCK:= frama-c-hdrck HDRCK:= frama-c-hdrck
...@@ -101,7 +101,7 @@ $(error "Please set HEADER_SPEC variable to a file containing the header specifi ...@@ -101,7 +101,7 @@ $(error "Please set HEADER_SPEC variable to a file containing the header specifi
endif # HEADER_HAS_GIT_FILE endif # HEADER_HAS_GIT_FILE
HDRCK_OPTS+= -z HDRCK_OPTS+= -z
else else
...@@ -185,4 +185,3 @@ headers.info: ...@@ -185,4 +185,3 @@ headers.info:
# Local Variables: # Local Variables:
# compile-command: "make" # compile-command: "make"
# End: # End:
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