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

[ci] Partially enable lint

parent d696785e
No related branches found
No related tags found
No related merge requests found
...@@ -49,6 +49,14 @@ frama-c: ...@@ -49,6 +49,14 @@ frama-c:
tags: tags:
- nix - nix
lint:
stage: build
script:
- nix-build nix/pkgs.nix -A ocamlPackages.lint
coverage: '/lint coverage: \d+\.\d+/'
tags:
- nix
################################################################################ ################################################################################
### TESTS ### TESTS
...@@ -72,14 +80,6 @@ plugins-tests: ...@@ -72,14 +80,6 @@ plugins-tests:
################################################################################ ################################################################################
### PUBLIC ### PUBLIC
# lint:
# stage: build
# script:
# - nix/frama-ci.sh build -A frama-c.lint
# coverage: '/lint coverage: \d+\.\d+/'
# tags:
# - nix
# wp-qualif: # wp-qualif:
# stage: tests # stage: tests
# script: # script:
......
# TODO:
# - enable lint E-ACSL C files
# - enable check-headers
{ lib
, stdenv
, bc
# , clang_10
, frama-c
# , headache
, ocp-indent
} :
stdenv.mkDerivation rec {
pname = "lint";
version = frama-c.version;
slang = frama-c.slang;
src = frama-c.src;
nativeBuildInputs = frama-c.nativeBuildInputs;
buildInputs = frama-c.buildInputs ++ [
bc
# headache
ocp-indent
# clang_10
];
preConfigure = frama-c.preConfigure;
buildPhase = ''
make lint
make stats-lint
# STRICT_HEADERS=yes make check-headers
'';
installPhase = ''
touch $out
'';
}
...@@ -9,6 +9,7 @@ let ...@@ -9,6 +9,7 @@ let
why3 = oself.callPackage ./why3.nix {}; why3 = oself.callPackage ./why3.nix {};
# Builds # Builds
frama-c = oself.callPackage ./frama-c.nix {}; frama-c = oself.callPackage ./frama-c.nix {};
lint = oself.callPackage ./lint.nix {};
# Tests # Tests
main-tests = oself.callPackage ./main-tests.nix {}; main-tests = oself.callPackage ./main-tests.nix {};
plugins-tests = oself.callPackage ./plugins-tests.nix {}; plugins-tests = oself.callPackage ./plugins-tests.nix {};
......
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