Skip to content
Snippets Groups Projects
.gitlab-ci.yml 3.39 KiB
stages:
    - ubuntu1604_experimental_x86_64
    - ubuntu1604_experimental_test_x86_64
    - ubuntu1404_experimental_x86_64
    - ubuntu1404_experimental_test_x86_64
    - build_arm_experimental_linux26


before_script:
  - export NOW=$(date +"%Y%m%d-%H%M%S")
  - export TAR_NAME_POSTFIX=$NOW
  - echo $DOCKER_PRIV_KEY >> /builds/amichelo/chaos_bundle_compilation/deploy.key
  - mkdir -p ~/.ssh
  - mkdir build_$CI_JOB_STAGE
  - export INSTALL_DIR=/builds/amichelo/chaos_bundle_compilation/distrib/chaos-distrib-$CI_PIPELINE_ID
  - mkdir -p $INSTALL_DIR
  - cd build_$CI_JOB_STAGE
  - echo "Working directory:$PWD"
  - echo "Install prefix :$INSTALL_DIR"
  - git config --global user.email andrea.michelotti@lnf.infn.it
  - git config --global user.name amichelo
  - git config --global color.ui true

ubuntu1604_experimental_x86_64:
  tags:
    - chaos
  stage: ubuntu1604_experimental_x86_64
  image: baltig.infn.it:4567/amichelo/chaos_bundle_compilation:1604
  script:
    - mkdir chaos_bundle
    - cd chaos_bundle
    - repo init -u git@baltig.infn.it:chaos-lnf-control/chaos_repo_bundle.git -b experimental
    - repo sync
    - cmake -DCHAOS_WAN=ON -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR .
    - make  -j 8 install
    - tar cfz chaos-distrib-$CI_PIPELINE_ID.tar.gz -C $INSTALL_DIR/..  chaos-distrib-$CI_PIPELINE_ID
# artifacts:
#        paths:
#        - chaos-distrib-$CI_PIPELINE_ID.tar.gz
ubuntu1604_experimental_test_x86_64:
  tags:
    - chaos
  stage: ubuntu1604_experimental_test_x86_64
  image: baltig.infn.it:4567/amichelo/chaos_bundle_compilation:1604
  script:
    - /tmp/chaos_start.sh
    - tar xfz chaos-distrib-$CI_PIPELINE_ID.tar.gz
    - cd chaos-distrib-$CI_PIPELINE_ID
    - source chaos_env.sh
    - ./tools/chaos_test.sh .

ubuntu1404_experimental_x86_64:
  tags:
    - chaos
  stage: ubuntu1404_experimental_x86_64
  image: baltig.infn.it:4567/amichelo/chaos_bundle_compilation:1404
  script:
    - mkdir chaos_bundle
    - cd chaos_bundle
    - repo init -u git@baltig.infn.it:chaos-lnf-control/chaos_repo_bundle.git -b experimental
    - repo sync
    - cmake -DCHAOS_WAN=ON -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR .
    - make  -j 4 install
    - tar cfz chaos-distrib-$CI_PIPELINE_ID.tar.gz -C $INSTALL_DIR/..  chaos-distrib-$CI_PIPELINE_ID
# artifacts:
#        paths:
#        - chaos-distrib-$CI_PIPELINE_ID.tar.gz

ubuntu1404_experimental_test_x86_64:
  tags: