diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a81c11e36a69d60fa64e98e8e2faa668c2a95221..280b2ba7cbc38f46759206b061e6f425f3dea55b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -82,13 +82,11 @@ test_starpu_mpi: name: starpu_mpi_test expire_in: 48 hours paths: - #- coverage_starpu_mpi.tar.bz2 - chameleon_starpu_mpi.lcov script: - source .gitlab-ci-env.sh - git submodule update --init --recursive - (cd build && STARPU_SILENT=1 ctest --no-compress-output -R test_shm_s || /usr/bin/true && ctest --no-compress-output -R mpi_s || /usr/bin/true) - #- find -name "*.gcda" | xargs tar cvjf coverage_starpu_mpi.tar.bz2 - lcov --directory build --capture --output-file chameleon_starpu_mpi.lcov test_starpu_simgrid: @@ -99,13 +97,11 @@ test_starpu_simgrid: name: starpu_simgrid_test expire_in: 48 hours paths: - #- coverage_starpu_simgrid.tar.bz2 - chameleon_starpu_simgrid.lcov script: - source .gitlab-ci-env.sh simu - git submodule update --init --recursive - (cd build && STARPU_SILENT=1 ctest --no-compress-output -V || /usr/bin/true) - #- find -name "*.gcda" | xargs tar cvjf coverage_starpu_simgrid.tar.bz2 - lcov --directory build --capture --output-file chameleon_starpu_simgrid.lcov test_quark: @@ -116,13 +112,11 @@ test_quark: name: quark_test expire_in: 48 hours paths: - #- coverage_quark.tar.bz2 - chameleon_quark.lcov script: - source .gitlab-ci-env.sh - git submodule update --init --recursive - (cd build && ctest --no-compress-output -R test_shm_s) - #- find -name "*.gcda" | xargs tar cvjf coverage_quark.tar.bz2 - lcov --directory build --capture --output-file chameleon_quark.lcov sonar: @@ -145,16 +139,11 @@ sonar: - sonar.log script: - source .gitlab-ci-env.sh - #- tar xvjf coverage_starpu_simgrid.tar.bz2 - #- tar xvjf coverage_starpu_mpi.tar.bz2 - #- tar xvjf coverage_quark.tar.bz2 - lcov -a $PWD/chameleon_starpu_mpi.lcov -a $PWD/chameleon_starpu_simgrid.lcov -a $PWD/chameleon_quark.lcov -o $PWD/chameleon.lcov - #- genhtml -o coverage chameleon.lcov - lcov_cobertura.py chameleon.lcov --output chameleon-coverage.xml - ./tools/analysis.sh only: - master - - issue53/fix-ci doc: stage: doc diff --git a/tools/analysis.sh b/tools/analysis.sh index 3db5ef5ae1bfa6d7b785a888cd59267fbabd5cf8..56ce4ceaf2cb38790f0e9ed2c31a87152af0ef86 100755 --- a/tools/analysis.sh +++ b/tools/analysis.sh @@ -1,24 +1,9 @@ #!/bin/bash -# Performs an analysis of Chameleon source code -# We consider to be in Chameleon's source code root - -# build with proper options -#mkdir -p build -#cd build -#rm * -rf -#cmake .. -DCHAMELEON_USE_MPI=ON -DCMAKE_INSTALL_PREFIX=$PWD/install -DCMAKE_VERBOSE_MAKEFILE=ON -DMORSE_ENABLE_WARNING=ON -DMORSE_ENABLE_COVERAGE=ON -#make -j5 | tee ../chameleon-build.log - -# run tests -#STARPU_SILENT=1 ctest --no-compress-output || /usr/bin/true - -# capture coverage -#lcov --directory . --capture --output-file ../chameleon.lcov -#lcov --directory build --capture --output-file chameleon.lcov -#cd .. -#genhtml -o coverage chameleon.lcov -#lcov_cobertura.py chameleon.lcov --output chameleon-coverage.xml +# Performs an analysis of Chameleon source code: +# - we consider to be in Chameleon's source code root +# - we consider having the coverage file chameleon-coverage.xml in the root directory +# - we consider having cppcheck, rats, sonar-scanner programs available in the environment # filter sources: # - consider generated files in build