From 487257a1693b755f289ad4ad05d042c825ca3327 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Bobot?= <francois.bobot@cea.fr> Date: Tue, 7 Jan 2020 13:26:04 +0100 Subject: [PATCH] [CI] Move E-ACSL dev tests to frama-c configuration --- .gitlab-ci.yml | 11 +++++++++-- nix/default.nix | 22 ++++++++++++++++++++++ 2 files changed, 31 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index afb73a77820..ca360d48344 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -212,7 +212,14 @@ pathcrawler: tags: - nix - +e-acsl-tests-dev: + stage: tests + variables: + OCAML: "4_05" + script: + - nix/frama-ci.sh build -A frama-c.e-acsl-tests-dev + tags: + - nix make_public: stage: make_public @@ -224,4 +231,4 @@ make_public: tags: - nix only: - - schedules \ No newline at end of file + - schedules diff --git a/nix/default.nix b/nix/default.nix index f2c09d1e78b..ebb2af49502 100644 --- a/nix/default.nix +++ b/nix/default.nix @@ -178,6 +178,28 @@ rec { ''; }; + e-acsl-tests-dev = stdenv.mkDerivation { + name = "frama-c-e-acsl-tests-dev"; + buildInputs = mk_buildInputs {}; + build_dir = main.build_dir; + src = main.build_dir + "/dir.tar"; + sourceRoot = "."; + postUnpack = '' + find . \( -name "Makefile*" -or -name ".depend" -o -name "ptests_config" -o -name "config.status" \) -exec bash -c "t=\$(stat -c %y \"\$0\"); sed -i -e \"s&$(cat $build_dir/old_pwd)&$(pwd)&g\" \"\$0\"; touch -d \"\$t\" \"\$0\"" {} \; + ''; + configurePhase = '' + true + ''; + buildPhase = '' + make clean_share_link + make create_share_link + make E_ACSL_TESTS -j 4 PTESTS_OPTS="-error-code -j 4" DEV=yes + ''; + installPhase = '' + true + ''; + }; + internal = stdenv.mkDerivation { name = "frama-c-internal"; inherit src; -- GitLab