Commit 9a5d3474 authored by PRUVOST Florent's avatar PRUVOST Florent

test new pipeline on starpu build

parent 61c0369a
image: hpclib/hiepacs image: hpclib/hiepacs
starpu: stages:
script: - build
- source .gitlab-ci-env.sh - test
- git submodule update --init --recursive - analysis
- mkdir -p build
- cd build
- cmake ..
- make -j2
- ctest -R test_shm_s
- cmake .. -DCHAMELEON_USE_MPI=ON -DCMAKE_INSTALL_PREFIX=$PWD/install
- make -j2
- ctest -V -R mpi_s
starpu-simgrid:
script:
- source .gitlab-ci-env.sh simu
- git submodule update --init --recursive
- mkdir -p build
- cd build
- cmake .. -DCHAMELEON_SIMULATION=ON -DCHAMELEON_USE_CUDA=ON -DCHAMELEON_USE_MPI=OFF
- make -j2
- ctest -V
quark: build_starpu:
stage: build
name: starpu_build
expire_in: 42 minutes
paths: build
script: script:
- source .gitlab-ci-env.sh - source .gitlab-ci-env.sh
- git submodule update --init --recursive - git submodule update --init --recursive
- mkdir -p build - mkdir -p build
- cd build - cd build
- cmake .. -DCHAMELEON_SCHED_QUARK=ON - cmake .. -DCHAMELEON_USE_MPI=ON -DCMAKE_INSTALL_PREFIX=${PWD}/install -DCMAKE_VERBOSE_MAKEFILE=ON -DMORSE_ENABLE_WARNING=ON -DMORSE_ENABLE_COVERAGE=ON
- make -j2 - make -j5 | tee ../chameleon-build.log
- ctest -V -R test_shm_s - make install | tee -a ../chameleon-build.log
doc: test_starpu:
stage: test
dependencies:
- build_starpu
artifacts: artifacts:
name: chameleon_doc name: starpu_test
expire_in: 1 week expire_in: 42 minutes
paths: paths:
- build/doc/doxygen - coverage.tar.gz2
- build/doc/orgmode
script: script:
- source .gitlab-ci-env.sh - source .gitlab-ci-env.sh
- git submodule update --init --recursive - git submodule update --init --recursive
- mkdir -p build STARPU_SILENT=1 ctest --no-compress-output || /usr/bin/true
- cd build - (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)
- cmake .. -DCHAMELEON_ENABLE_DOC=ON -DCHAMELEON_ENABLE_EXAMPLE=OFF -DCHAMELEON_ENABLE_TESTING=OFF -DCHAMELEON_ENABLE_TIMING=OFF - find -name "*.gcda" | xargs tar cvjf coverage.tar.bz2
- make doc
analysis: sonar:
stage: analysis
dependencies:
- build_starpu
- test_starpu
artifacts: artifacts:
name: chameleon_analysis name: chameleon_analysis
expire_in: 1 week expire_in: 1 week
...@@ -61,7 +52,45 @@ analysis: ...@@ -61,7 +52,45 @@ analysis:
- sonar.log - sonar.log
script: script:
- source .gitlab-ci-env.sh - source .gitlab-ci-env.sh
- git submodule update --init --recursive - tar xvjf coverage.tar.bz2
- ./tools/analysis.sh - ./tools/analysis.sh
only: only:
- master - master
- issue53/fix-ci
#starpu-simgrid:
# stage: buildtest
# script:
# - source .gitlab-ci-env.sh simu
# - git submodule update --init --recursive
# - mkdir -p build
# - cd build
# - cmake .. -DCHAMELEON_SIMULATION=ON -DCHAMELEON_USE_CUDA=ON -DCHAMELEON_USE_MPI=OFF
# - make -j2
# - ctest -V
#
#quark:
# stage: buildtest
# script:
# - source .gitlab-ci-env.sh
# - git submodule update --init --recursive
# - mkdir -p build
# - cd build
# - cmake .. -DCHAMELEON_SCHED_QUARK=ON
# - make -j2
# - ctest -V -R test_shm_s
#doc:
# artifacts:
# name: chameleon_doc
# expire_in: 1 week
# paths:
# - build/doc/doxygen
# - build/doc/orgmode
# script:
# - source .gitlab-ci-env.sh
# - git submodule update --init --recursive
# - mkdir -p build
# - cd build
# - cmake .. -DCHAMELEON_ENABLE_DOC=ON -DCHAMELEON_ENABLE_EXAMPLE=OFF -DCHAMELEON_ENABLE_TESTING=OFF -DCHAMELEON_ENABLE_TIMING=OFF
# - make doc
...@@ -4,19 +4,20 @@ ...@@ -4,19 +4,20 @@
# We consider to be in Chameleon's source code root # We consider to be in Chameleon's source code root
# build with proper options # build with proper options
mkdir -p build #mkdir -p build
cd build #cd build
rm * -rf #rm * -rf
cmake .. -DCHAMELEON_USE_MPI=ON -DCMAKE_INSTALL_PREFIX=$PWD/install -DCMAKE_VERBOSE_MAKEFILE=ON -DMORSE_ENABLE_WARNING=ON -DMORSE_ENABLE_COVERAGE=ON #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 #make -j5 | tee ../chameleon-build.log
# run tests # run tests
STARPU_SILENT=1 ctest --no-compress-output || /usr/bin/true #STARPU_SILENT=1 ctest --no-compress-output || /usr/bin/true
# capture coverage # capture coverage
lcov --directory . --capture --output-file ../chameleon.lcov #lcov --directory . --capture --output-file ../chameleon.lcov
cd .. lcov --directory build --capture --output-file chameleon.lcov
genhtml -o coverage chameleon.lcov #cd ..
#genhtml -o coverage chameleon.lcov
lcov_cobertura.py chameleon.lcov --output chameleon-coverage.xml lcov_cobertura.py chameleon.lcov --output chameleon-coverage.xml
# filter sources: # filter sources:
...@@ -28,7 +29,8 @@ lcov_cobertura.py chameleon.lcov --output chameleon-coverage.xml ...@@ -28,7 +29,8 @@ lcov_cobertura.py chameleon.lcov --output chameleon-coverage.xml
# Undefine this because not relevant in our configuration # Undefine this because not relevant in our configuration
export UNDEFINITIONS="-UCHAMELEON_USE_OPENCL -UWIN32 -UWIN64 -U_MSC_EXTENSIONS -U_MSC_VER -U__SUNPRO_C -U__SUNPRO_CC -U__sun -Usun -U__cplusplus" export UNDEFINITIONS="-UCHAMELEON_USE_OPENCL -UWIN32 -UWIN64 -U_MSC_EXTENSIONS -U_MSC_VER -U__SUNPRO_C -U__SUNPRO_CC -U__sun -Usun -U__cplusplus"
# run cppcheck analysis # run cppcheck analysis
cppcheck -v -f --language=c --platform=unix64 --enable=all --xml --xml-version=2 --suppress=missingIncludeSystem ${UNDEFINITIONS} --file-list=./filelist.txt 2> chameleon-cppcheck.xml #cppcheck -v -f --language=c --platform=unix64 --enable=all --xml --xml-version=2 --suppress=missingIncludeSystem ${UNDEFINITIONS} --file-list=./filelist.txt 2> chameleon-cppcheck.xml
cppcheck -v -f --language=c --platform=unix64 --enable=all --xml --xml-version=2 --suppress=missingIncludeSystem ${UNDEFINITIONS} `cat filelist.txt` 2> chameleon-cppcheck.xml
# run rats analysis # run rats analysis
rats -w 3 --xml `cat filelist.txt` > chameleon-rats.xml rats -w 3 --xml `cat filelist.txt` > chameleon-rats.xml
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment