Skip to content
Snippets Groups Projects
.gitlab-ci.yml 1.91 KiB
Newer Older
Andrea Michelotti's avatar
Andrea Michelotti committed
stages:
Andrea Michelotti's avatar
Andrea Michelotti committed
    - fetch_src
    - buildx86_64
    - buildxarm_linux26
Andrea Michelotti's avatar
Andrea Michelotti committed

cache:
    paths:
        - /builds/amichelo/chaos_bundle_compilation/chaos_bundle

Andrea Michelotti's avatar
Andrea Michelotti committed
before_script:
  - export NOW=$(date +"%Y%m%d-%H%M%S")
  - export TAR_NAME_POSTFIX=$NOW
  - echo $CHAOS_DEPLOY_PRIVATE_KEY >> /builds/amichelo/chaos_bundle_compilation/deploy.key
  - chmod 600 /builds/amichelo/chaos_bundle_compilation/deploy.key
  - mkdir build_$CI_JOB_STAGE
  - export INSTALL_DIR=/builds/amichelo/chaos_bundle_compilation/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
fetch_src_job:
  stage: fetch_src
  image: baltig.infn.it:4567/bisegni/chaos-docker-compilation:latest
  script:
  - mkdir ~/bin
  - curl http://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
  - chmod +x ~/bin/repo
  - git config --global user.email andrea.michelotti@lnf.infn.it
  - rm -rf /builds/amichelo/chaos_bundle_compilation/chaos_bundle
Andrea Michelotti's avatar
Andrea Michelotti committed
  - mkdir /builds/amichelo/chaos_bundle_compilation/chaos_bundle/
  - cd /builds/amichelo/chaos_bundle_compilation/chaos_bundle
  - ~/bin/repo init -u https://amichelo@opensource-stash.infn.it/scm/chaos/chaos_repo_bundle -b development_https
  - ~/bin/repo sync
build_dynamic_framework_x86_64:
  stage: buildx86_64
Andrea Michelotti's avatar
Andrea Michelotti committed
  image: baltig.infn.it:4567/bisegni/chaos-docker-compilation:latest
  script:
    - cmake /builds/amichelo/chaos_bundle_compilation/chaos_bundle -DCHAOS_WAN=ON -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR
    - make  -j 4 install
Andrea Michelotti's avatar
Andrea Michelotti committed
build_static_framework_arm_linux26:
  stage: buildxarm_linux26
Andrea Michelotti's avatar
Andrea Michelotti committed
  image: baltig.infn.it:4567/bisegni/chaos-docker-compilation:latest
  script:
    - cmake /builds/amichelo/chaos_bundle_compilation/chaos_bundle -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR -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
    - make  -j 4 install