Skip to content
Snippets Groups Projects
.gitlab-ci.yml 4.01 KiB
Newer Older
Andrea Michelotti's avatar
Andrea Michelotti committed
stages:
Andrea Michelotti's avatar
Andrea Michelotti committed
    - ubuntu1604_experimental_x86_64
    - ubuntu1604_experimental_test_x86_64
    - buildxarm_experimental_linux26
    - ubuntu1404_experimental_x86_64
    - ubuntu1404_experimental_test_x86_64
    - ubuntu1604_x86_64
    - ubuntu1604_test_x86_64
    - buildxarm_linux26
    - ubuntu1404_x86_64
    - ubuntu1404_test_x86_64
cache:
  key: $CI_BUILD_REF_NAME
  paths:
      - /builds/amichelo/chaos_bundle_compilation/distrib

Andrea Michelotti's avatar
Andrea Michelotti committed
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
  # - echo $DOCKER_PRIV_KEY > ~/.ssh/id_rsa
  # - echo $SSH_CONFIG > ~/.ssh/config
  # - chmod 600 ~/.ssh/id_rsa
  # - chmod 600 /builds/amichelo/chaos_bundle_compilation/deploy.key
  - mkdir build_$CI_JOB_STAGE
  - export INSTALL_DIR=/builds/amichelo/chaos_bundle_compilation/distrib/chaos-distrib-$CI_JOB_STAGE
  - mkdir -p $INSTALL_DIR
  - cd build_$CI_JOB_STAGE
  - echo "Working directory:$PWD"
  - echo "Install prefix :$INSTALL_DIR"
Andrea Michelotti's avatar
Andrea Michelotti committed
  - git config --global user.email andrea.michelotti@lnf.infn.it
  - git config --global user.name amichelo
  - git config --global color.ui true
Andrea Michelotti's avatar
Andrea Michelotti committed
ubuntu1604_experimental_x86_64:
  tags:
    - chaos
Andrea Michelotti's avatar
Andrea Michelotti committed
  stage: ubuntu1604_experimental_x86_64
  image: baltig.infn.it:4567/amichelo/chaos_bundle_compilation:1604
Andrea Michelotti's avatar
Andrea Michelotti committed
  script:
Andrea Michelotti's avatar
Andrea Michelotti committed
    - 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_JOB_STAGE.tar.gz -C $INSTALL_DIR/..  chaos-distrib-$CI_JOB_STAGE
    - scp chaos-distrib-$CI_JOB_STAGE.tar.gz chaosweb@opensource.lnf.infn.it:/var/www/html/binary/chaos/x86_64
Andrea Michelotti's avatar
Andrea Michelotti committed
ubuntu1604_experimental_test_x86_64:
  tags:
    - chaos
Andrea Michelotti's avatar
Andrea Michelotti committed
  stage: ubuntu1604_experimental_test_x86_64
  image: baltig.infn.it:4567/amichelo/chaos_bundle_compilation:1604
  script:
    - /tmp/chaos_start.sh
Andrea Michelotti's avatar
Andrea Michelotti committed
    - scp chaosweb@opensource.lnf.infn.it:/var/www/html/binary/chaos/x86_64/chaos-distrib-ubuntu1604_experimental_x86_64.tar.gz .
    - tar xfz chaos-distrib-ubuntu1604_experimental_x86_64.tar.gz
    - cd chaos-distrib-ubuntu1604_experimental_x86_64
    - source chaos_env.sh
    - ./tools/chaos_test.sh .
Andrea Michelotti's avatar
Andrea Michelotti committed
ubuntu1404_experimental_x86_64:
  tags:
    - chaos

Andrea Michelotti's avatar
Andrea Michelotti committed
  stage: ubuntu1404_experimental_x86_64
  image: baltig.infn.it:4567/amichelo/chaos_bundle_compilation:1404
  script:
Andrea Michelotti's avatar
Andrea Michelotti committed
    - 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_JOB_STAGE.tar.gz -C $INSTALL_DIR/..  chaos-distrib-$CI_JOB_STAGE
    - scp chaos-distrib-$CI_JOB_STAGE.tar.gz chaosweb@opensource.lnf.infn.it:/var/www/html/binary/chaos/x86_64

Andrea Michelotti's avatar
Andrea Michelotti committed
ubuntu1404_experimental_test_x86_64:
  tags:
    - chaos

Andrea Michelotti's avatar
Andrea Michelotti committed
  stage: ubuntu1404_experimental_test_x86_64
  image: baltig.infn.it:4567/amichelo/chaos_bundle_compilation:1404
  script:
    - /tmp/chaos_start.sh
Andrea Michelotti's avatar
Andrea Michelotti committed
    - scp chaosweb@opensource.lnf.infn.it:/var/www/html/binary/chaos/x86_64/chaos-distrib-ubuntu1404_experimental_x86_64.tar.gz .
    - tar xfz chaos-distrib-ubuntu1404_experimental_x86_64.tar.gz
    - cd chaos-distrib-ubuntu1404_experimental_x86_64
    - source chaos_env.sh
    - ./tools/chaos_test.sh .

Andrea Michelotti's avatar
Andrea Michelotti committed
buildxarm_experimental_linux26:
  tags:
    - shared
Andrea Michelotti's avatar
Andrea Michelotti committed
  stage: buildxarm_experimental_linux26
  image: baltig.infn.it:4567/amichelo/chaos_bundle_compilation:latest 
Andrea Michelotti's avatar
Andrea Michelotti committed
  script:
Andrea Michelotti's avatar
Andrea Michelotti committed
    - mkdir chaos_bundle
    - cd chaos_bundle
    - repo init -u git@baltig.infn.it:chaos-lnf-control/chaos_repo_bundle.git -b experimental
    - repo sync
    - 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
    - make  -j 4 install