Skip to content
Snippets Groups Projects
Commit 1fcbb000 authored by Andrea Michelotti's avatar Andrea Michelotti
Browse files

profile at the end

parent 8948348f
No related branches found
No related tags found
No related merge requests found
Pipeline #
stages: stages:
- build - build
- publish
- test - test
- deploy - deploy
- docker - docker
...@@ -125,15 +124,13 @@ ubuntu1604_x86_64: ...@@ -125,15 +124,13 @@ ubuntu1604_x86_64:
- repo init -q --no-clone-bundle -u git@baltig.infn.it:chaos-lnf-control/chaos_repo_bundle.git -b $CI_COMMIT_REF_NAME - repo init -q --no-clone-bundle -u git@baltig.infn.it:chaos-lnf-control/chaos_repo_bundle.git -b $CI_COMMIT_REF_NAME
- repo sync - repo sync
- cd chaosframework;export CHAOS_LIB_HASH=`git log -n 1 --pretty="%h"`;cd -; - cd chaosframework;export CHAOS_LIB_HASH=`git log -n 1 --pretty="%h"`;cd -;
- cmake -DCHAOS_ARCHITECTURE_TEST=ON -DCHAOS_VERSION_MAJOR="$CI_COMMIT_REF_NAME.$CHAOS_LIB_HASH" -DCHAOS_VERSION_MINOR="$CI_JOB_STAGE.$CI_COMMIT_SHA" -DCHAOS_WAN=ON -DCHAOS_CCS=ON -DCHAOS_BUILD_ID=${CI_PIPELINE_ID} -DCERN_ROOT=$INSTALL_DIR -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR -DCMAKE_BUILD_TYPE=PROFILE . |& tee $DISTRIB_PREFIX/bundle.configuration.log - cmake -DCHAOS_ARCHITECTURE_TEST=ON -DCHAOS_VERSION_MAJOR="$CI_COMMIT_REF_NAME.$CHAOS_LIB_HASH" -DCHAOS_VERSION_MINOR="$CI_JOB_STAGE.$CI_COMMIT_SHA" -DCHAOS_WAN=ON -DCHAOS_CCS=ON -DCHAOS_BUILD_ID=${CI_PIPELINE_ID} -DCERN_ROOT=$INSTALL_DIR -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR . |& tee $DISTRIB_PREFIX/bundle.configuration.log
- make -j 4 install - make -j 4 install
- source $INSTALL_DIR/chaos_env.sh - source $INSTALL_DIR/chaos_env.sh
- $INSTALL_DIR/bin/TestFramework - $INSTALL_DIR/bin/TestFramework
- $INSTALL_DIR/tools/chaos_test.sh -d $INSTALL_DIR/tools/test - $INSTALL_DIR/tools/chaos_test.sh -d $INSTALL_DIR/tools/test
- lcov --capture --directory . --output-file coverage.info # - scripts/strip_symbols.sh $INSTALL_DIR
- genhtml coverage.info --output-directory coverage_html
- scripts/strip_symbols.sh $INSTALL_DIR
# - source $INSTALL_DIR/chaos_env.sh # - source $INSTALL_DIR/chaos_env.sh
# - cd chaosframework/ccs;qmake;echo "* compiling CCS";make -j 4 >& $DISTRIB_PREFIX/log/ccs.compilation.log ;cp ccs $INSTALL_DIR/bin; # - cd chaosframework/ccs;qmake;echo "* compiling CCS";make -j 4 >& $DISTRIB_PREFIX/log/ccs.compilation.log ;cp ccs $INSTALL_DIR/bin;
# - cd ../../ # - cd ../../
...@@ -142,11 +139,8 @@ ubuntu1604_x86_64: ...@@ -142,11 +139,8 @@ ubuntu1604_x86_64:
name: "$DISTRIB_NAME.tar.gz" name: "$DISTRIB_NAME.tar.gz"
paths: paths:
- ./*.tar.gz - ./*.tar.gz
- 'coverage_html' expire_in: 1 day
expire_in: 1 day
coverage: '/^TOTAL.*\s+(\d+\%)$/'
# ubuntu1604_legacy_x86_64: # ubuntu1604_legacy_x86_64:
# stage: build # stage: build
...@@ -409,20 +403,35 @@ chaosroot-docker: ...@@ -409,20 +403,35 @@ chaosroot-docker:
- docker build -t baltig.infn.it:4567/chaos-lnf-control/$CI_JOB_NAME:$CI_COMMIT_REF_NAME . - docker build -t baltig.infn.it:4567/chaos-lnf-control/$CI_JOB_NAME:$CI_COMMIT_REF_NAME .
- docker push baltig.infn.it:4567/chaos-lnf-control/$CI_JOB_NAME:$CI_COMMIT_REF_NAME - docker push baltig.infn.it:4567/chaos-lnf-control/$CI_JOB_NAME:$CI_COMMIT_REF_NAME
pages: pages:
stage: publish stage: docker
dependencies: services:
- ubuntu1604_x86_64 - name: couchbase/server:community-3.1.3
image: baltig.infn.it:4567/chaos-lnf-control/chaos_bundle_compilation:lite alias: couchbase
- name: baltig.infn.it:4567/chaos-lnf-control/chaos_bundle_compilation/mongo:3.4
alias: mongo
image: baltig.infn.it:4567/chaos-lnf-control/chaos_bundle_compilation:1604
script: script:
- mv coverage_html public - scripts/dbinit.sh couchbase mongo
- mkdir -p $INSTALL_DIR
- repo init -q --no-clone-bundle -u git@baltig.infn.it:chaos-lnf-control/chaos_repo_bundle.git -b $CI_COMMIT_REF_NAME
- repo sync
- cd chaosframework;export CHAOS_LIB_HASH=`git log -n 1 --pretty="%h"`;cd -;
- cmake -DCHAOS_ARCHITECTURE_TEST=ON -DCHAOS_VERSION_MAJOR="$CI_COMMIT_REF_NAME.$CHAOS_LIB_HASH" -DCHAOS_VERSION_MINOR="$CI_JOB_STAGE.$CI_COMMIT_SHA" -DCHAOS_WAN=ON -DCHAOS_CCS=ON -DCHAOS_BUILD_ID=${CI_PIPELINE_ID} -DCERN_ROOT=$INSTALL_DIR -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR -DCMAKE_BUILD_TYPE=PROFILE . |& tee $DISTRIB_PREFIX/bundle.configuration.log
- make -j 4 install
- source $INSTALL_DIR/chaos_env.sh
- $INSTALL_DIR/bin/TestFramework
- $INSTALL_DIR/tools/chaos_test.sh -d $INSTALL_DIR/tools/test
- lcov -r '*external-x86_64-Linux*' '*boost*' --capture --directory . --output-file coverage.info
- genhtml coverage.info --output-directory public
- ls -la - ls -la
allow_failure: true
artifacts: artifacts:
paths: paths:
- public - 'coverage_html'
expire_in: 7 days expire_in: 7 day
coverage: '/^TOTAL.*\s+(\d+\%)$/'
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