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

test new pipeline on starpu build

parent 61c0369a
image: hpclib/hiepacs
starpu:
script:
- source .gitlab-ci-env.sh
- git submodule update --init --recursive
- 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
stages:
- build
- test
- analysis
quark:
build_starpu:
stage: build
name: starpu_build
expire_in: 42 minutes
paths: build
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
- 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 install | tee -a ../chameleon-build.log
doc:
test_starpu:
stage: test
dependencies:
- build_starpu
artifacts:
name: chameleon_doc
expire_in: 1 week
name: starpu_test
expire_in: 42 minutes
paths:
- build/doc/doxygen
- build/doc/orgmode
- coverage.tar.gz2
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
STARPU_SILENT=1 ctest --no-compress-output || /usr/bin/true
- (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.tar.bz2
analysis:
sonar:
stage: analysis
dependencies:
- build_starpu
- test_starpu
artifacts:
name: chameleon_analysis
expire_in: 1 week
......@@ -61,7 +52,45 @@ analysis:
- sonar.log
script:
- source .gitlab-ci-env.sh
- git submodule update --init --recursive
- tar xvjf coverage.tar.bz2
- ./tools/analysis.sh
only:
- 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 @@
# 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
#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
#STARPU_SILENT=1 ctest --no-compress-output || /usr/bin/true
# capture coverage
lcov --directory . --capture --output-file ../chameleon.lcov
cd ..
genhtml -o coverage chameleon.lcov
#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
# filter sources:
......@@ -28,7 +29,8 @@ lcov_cobertura.py chameleon.lcov --output chameleon-coverage.xml
# 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"
# 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
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