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

added artifact to test and reduced tar in case of static arm build

parent fa4bbeba
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -9,10 +9,8 @@ before_script: ...@@ -9,10 +9,8 @@ before_script:
- export TAR_NAME_POSTFIX=$NOW - export TAR_NAME_POSTFIX=$NOW
- echo $DOCKER_PRIV_KEY >> /builds/amichelo/chaos_bundle_compilation/deploy.key - echo $DOCKER_PRIV_KEY >> /builds/amichelo/chaos_bundle_compilation/deploy.key
- mkdir -p ~/.ssh - mkdir -p ~/.ssh
- mkdir build_$CI_JOB_NAME
- export INSTALL_DIR=/builds/amichelo/chaos_bundle_compilation/distrib/chaos-distrib-$CI_JOB_NAME - export INSTALL_DIR=/builds/amichelo/chaos_bundle_compilation/distrib/chaos-distrib-$CI_JOB_NAME
- mkdir -p $INSTALL_DIR - mkdir -p $INSTALL_DIR
- cd build_$CI_JOB_NAME
- echo "$CI_JOB_NAME Working directory:$PWD tag $CI_COMMIT_REF_NAME" - echo "$CI_JOB_NAME Working directory:$PWD tag $CI_COMMIT_REF_NAME"
- echo "Install prefix :$INSTALL_DIR" - echo "Install prefix :$INSTALL_DIR"
- git config --global user.email andrea.michelotti@lnf.infn.it - git config --global user.email andrea.michelotti@lnf.infn.it
...@@ -23,8 +21,6 @@ ubuntu1604_x86_64: ...@@ -23,8 +21,6 @@ ubuntu1604_x86_64:
stage: build stage: build
image: baltig.infn.it:4567/amichelo/chaos_bundle_compilation:1604 image: baltig.infn.it:4567/amichelo/chaos_bundle_compilation:1604
script: script:
- mkdir chaos_bundle
- cd chaos_bundle
- repo init -u git@baltig.infn.it:chaos-lnf-control/chaos_repo_bundle.git -b $CI_COMMIT_REF_NAME - repo init -u git@baltig.infn.it:chaos-lnf-control/chaos_repo_bundle.git -b $CI_COMMIT_REF_NAME
- repo sync - repo sync
- cmake -DCHAOS_WAN=ON -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR . - cmake -DCHAOS_WAN=ON -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR .
...@@ -32,8 +28,8 @@ ubuntu1604_x86_64: ...@@ -32,8 +28,8 @@ ubuntu1604_x86_64:
- tar cfz chaos-distrib-$CI_COMMIT_REF_NAME-$CI_JOB_NAME.tar.gz -C $INSTALL_DIR/.. chaos-distrib-$CI_JOB_NAME - tar cfz chaos-distrib-$CI_COMMIT_REF_NAME-$CI_JOB_NAME.tar.gz -C $INSTALL_DIR/.. chaos-distrib-$CI_JOB_NAME
artifacts: artifacts:
paths: paths:
- build_$CI_JOB_NAME/chaos_bundle/chaos-distrib-$CI_COMMIT_REF_NAME-$CI_JOB_NAME.tar.gz - chaos-distrib-$CI_COMMIT_REF_NAME-$CI_JOB_NAME.tar.gz
expire_in: 1 week expire_in: 1 day
ubuntu1604_test_x86_64: ubuntu1604_test_x86_64:
stage: test stage: test
...@@ -44,13 +40,15 @@ ubuntu1604_test_x86_64: ...@@ -44,13 +40,15 @@ ubuntu1604_test_x86_64:
- cd chaos-distrib-ubuntu1604_x86_64 - cd chaos-distrib-ubuntu1604_x86_64
- source chaos_env.sh - source chaos_env.sh
- ./tools/chaos_test.sh . - ./tools/chaos_test.sh .
artifacts:
paths:
- chaos-distrib-ubuntu1604_x86_64/log
expire_in: 1 day
ubuntu1404_x86_64: ubuntu1404_x86_64:
stage: build stage: build
image: baltig.infn.it:4567/amichelo/chaos_bundle_compilation:1404 image: baltig.infn.it:4567/amichelo/chaos_bundle_compilation:1404
script: script:
- mkdir chaos_bundle
- cd chaos_bundle
- repo init -u git@baltig.infn.it:chaos-lnf-control/chaos_repo_bundle.git -b $CI_COMMIT_REF_NAME - repo init -u git@baltig.infn.it:chaos-lnf-control/chaos_repo_bundle.git -b $CI_COMMIT_REF_NAME
- repo sync - repo sync
- cmake -DCHAOS_WAN=ON -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR . - cmake -DCHAOS_WAN=ON -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR .
...@@ -58,8 +56,8 @@ ubuntu1404_x86_64: ...@@ -58,8 +56,8 @@ ubuntu1404_x86_64:
- tar cfz chaos-distrib-$CI_JOB_NAME.tar.gz -C $INSTALL_DIR/.. chaos-distrib-$CI_JOB_NAME - tar cfz chaos-distrib-$CI_JOB_NAME.tar.gz -C $INSTALL_DIR/.. chaos-distrib-$CI_JOB_NAME
artifacts: artifacts:
paths: paths:
- build_$CI_JOB_NAME/chaos_bundle/chaos-distrib-$CI_COMMIT_REF_NAME-$CI_JOB_NAME.tar.gz - chaos-distrib-$CI_COMMIT_REF_NAME-$CI_JOB_NAME.tar.gz
expire_in: 1 week expire_in: 1 day
ubuntu1404_test_x86_64: ubuntu1404_test_x86_64:
...@@ -71,30 +69,30 @@ ubuntu1404_test_x86_64: ...@@ -71,30 +69,30 @@ ubuntu1404_test_x86_64:
- cd chaos-distrib-ubuntu1404_x86_64 - cd chaos-distrib-ubuntu1404_x86_64
- source chaos_env.sh - source chaos_env.sh
- ./tools/chaos_test.sh . - ./tools/chaos_test.sh .
artifacts:
paths:
- chaos-distrib-ubuntu1404_x86_64/log
build_arm_linux26: build_arm_linux26:
stage: build stage: build
image: baltig.infn.it:4567/amichelo/chaos_bundle_compilation:1604 image: baltig.infn.it:4567/amichelo/chaos_bundle_compilation:1604
script: script:
- mkdir chaos_bundle
- cd chaos_bundle
- repo init -u git@baltig.infn.it:chaos-lnf-control/chaos_repo_bundle.git -b $CI_COMMIT_REF_NAME - repo init -u git@baltig.infn.it:chaos-lnf-control/chaos_repo_bundle.git -b $CI_COMMIT_REF_NAME
- repo sync - repo sync
- export PATH=/usr/local/chaos/gcc-arm-infn-linux26/bin/:$PATH - export PATH=/usr/local/chaos/gcc-arm-infn-linux26/bin/:$PATH
- cmake . -DCHAOS_STATIC=ON -DCHAOS_TARGET=arm-linux-2.6 -DCHAOS_CDS=OFF -DCHAOS_MDS=OFF -DCHAOS_WAN=OFF -DCHAOS_EXAMPLES=OFF -DCHAOS_ENABLE_C11=OFF -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR - cmake . -DCHAOS_STATIC=ON -DCHAOS_TARGET=arm-linux-2.6 -DCHAOS_CDS=OFF -DCHAOS_MDS=OFF -DCHAOS_WAN=OFF -DCHAOS_EXAMPLES=OFF -DCHAOS_ENABLE_C11=OFF -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR
- make -j 4 install - make -j 4 install
- arm-infn-linux-gnueabi-strip $INSTALL_DIR/bin/*
- tar cfz chaos-distrib-$CI_COMMIT_REF_NAME-$CI_JOB_NAME.tar.gz -C $INSTALL_DIR/.. chaos-distrib-$CI_JOB_NAME - tar cfz chaos-distrib-$CI_COMMIT_REF_NAME-$CI_JOB_NAME.tar.gz -C $INSTALL_DIR/.. chaos-distrib-$CI_JOB_NAME
artifacts: artifacts:
paths: paths:
- build_$CI_JOB_NAME/chaos_bundle/chaos-distrib-$CI_COMMIT_REF_NAME-$CI_JOB_NAME.tar.gz - chaos-distrib-$CI_COMMIT_REF_NAME-$CI_JOB_NAME.tar.gz
expire_in: 1 week expire_in: 1 day
build_i686_static_linux26: build_i686_static_linux26:
stage: build stage: build
image: baltig.infn.it:4567/amichelo/chaos_bundle_compilation:1604 image: baltig.infn.it:4567/amichelo/chaos_bundle_compilation:1604
script: script:
- mkdir chaos_bundle
- cd chaos_bundle
- repo init -u git@baltig.infn.it:chaos-lnf-control/chaos_repo_bundle.git -b $CI_COMMIT_REF_NAME - repo init -u git@baltig.infn.it:chaos-lnf-control/chaos_repo_bundle.git -b $CI_COMMIT_REF_NAME
- repo sync - repo sync
- export PATH=/usr/local/chaos/i686-nptl-linux-gnu/bin/:$PATH - export PATH=/usr/local/chaos/i686-nptl-linux-gnu/bin/:$PATH
...@@ -103,15 +101,13 @@ build_i686_static_linux26: ...@@ -103,15 +101,13 @@ build_i686_static_linux26:
- tar cfz chaos-distrib-$CI_COMMIT_REF_NAME-$CI_JOB_NAME.tar.gz -C $INSTALL_DIR/.. chaos-distrib-$CI_JOB_NAME - tar cfz chaos-distrib-$CI_COMMIT_REF_NAME-$CI_JOB_NAME.tar.gz -C $INSTALL_DIR/.. chaos-distrib-$CI_JOB_NAME
artifacts: artifacts:
paths: paths:
- build_$CI_JOB_NAME/chaos_bundle/chaos-distrib-$CI_COMMIT_REF_NAME-$CI_JOB_NAME.tar.gz - chaos-distrib-$CI_COMMIT_REF_NAME-$CI_JOB_NAME.tar.gz
expire_in: 1 week expire_in: 1 day
build_i686_dynamic_linux26: build_i686_dynamic_linux26:
stage: build stage: build
image: baltig.infn.it:4567/amichelo/chaos_bundle_compilation:1604 image: baltig.infn.it:4567/amichelo/chaos_bundle_compilation:1604
script: script:
- mkdir chaos_bundle
- cd chaos_bundle
- repo init -u git@baltig.infn.it:chaos-lnf-control/chaos_repo_bundle.git -b $CI_COMMIT_REF_NAME - repo init -u git@baltig.infn.it:chaos-lnf-control/chaos_repo_bundle.git -b $CI_COMMIT_REF_NAME
- repo sync - repo sync
- export PATH=/usr/local/chaos/i686-nptl-linux-gnu/bin/:$PATH - export PATH=/usr/local/chaos/i686-nptl-linux-gnu/bin/:$PATH
...@@ -120,6 +116,6 @@ build_i686_dynamic_linux26: ...@@ -120,6 +116,6 @@ build_i686_dynamic_linux26:
- tar cfz chaos-distrib-$CI_COMMIT_REF_NAME-$CI_JOB_NAME.tar.gz -C $INSTALL_DIR/.. chaos-distrib-$CI_JOB_NAME - tar cfz chaos-distrib-$CI_COMMIT_REF_NAME-$CI_JOB_NAME.tar.gz -C $INSTALL_DIR/.. chaos-distrib-$CI_JOB_NAME
artifacts: artifacts:
paths: paths:
- build_$CI_JOB_NAME/chaos_bundle/chaos-distrib-$CI_COMMIT_REF_NAME-$CI_JOB_NAME.tar.gz - chaos-distrib-$CI_COMMIT_REF_NAME-$CI_JOB_NAME.tar.gz
expire_in: 1 week expire_in: 1 day
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