https://gitlab.inria.fr/pm2/pm2
Raw File
Tip revision: 28348cbb7443cecb94f0380eacf8e9c4fd3b247e authored by Alexandre Denis on 11 July 2022, 16:08:29 UTC
nmad: some more error-checking on remote queues
Tip revision: 28348cb
.gitlab-ci.yml
default:
  image: $CI_REGISTRY_IMAGE
  tags:
    - ci.inria.fr
    - small

stages:
  - .pre
  - build

docker:
  stage: .pre
  image: docker:19.03.12
  services:
    - docker:19.03.12-dind
  rules:
    - if: '$CI_COMMIT_BRANCH == "master"'
      changes:
        - Dockerfile
  timeout: 1 hours
  script:
    - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
    - docker build -f Dockerfile -t $CI_REGISTRY_IMAGE . | tee build.log
    - docker push $CI_REGISTRY_IMAGE
  artifacts:
    untracked: true

check:
  stage: build
  parallel:
    matrix:
      - PM2_PROFILE:
        - madmpi
        # madmpi-debug is done in the job which builds the doc
        - madmpi-mini
        - madmpi-mini-debug
        - pukabi+madmpi
        - pukabi+madmpi-debug
        - pukabi+madmpi-mini
        - pukabi+madmpi-mini-debug
  script:
    - ./scripts/pm2-build-packages --prefix=$PWD/build/$PM2_PROFILE --purge ./scripts/${PM2_PROFILE}.conf

# This job builds the madmpi-debug profile and is used to generate the documentation published online:
pages:
  stage: build
  script:
  - ./scripts/pm2-build-packages --prefix=$PWD/build/madmpi-debug --purge ./scripts/madmpi-debug.conf
  - make -C ./build/madmpi-debug/build/Puk docs
  - mkdir -p public/Puk
  - mv ./build/madmpi-debug/build/Puk/doc/html public/Puk/doc
  - make -C ./build/madmpi-debug/build/pioman docs
  - mkdir -p public/pioman
  - mv ./build/madmpi-debug/build/pioman/doc/html public/pioman/doc
  - make -C ./build/madmpi-debug/build/nmad docs
  - mkdir -p public/nmad
  - mv ./build/madmpi-debug/build/nmad/doc/html public/nmad/doc
  - make -C ./build/madmpi-debug/build/mpibenchmark docs
  - mkdir -p public/mpibenchmark
  - mv ./build/madmpi-debug/build/mpibenchmark/doc/html public/mpibenchmark/doc
  - . $PWD/build/madmpi-debug/share/madmpi-debug.conf.sh # required since the prefix for bench_nbc below is different
  - ./scripts/pm2-build-packages --prefix=$PWD/build/bench_nbc --purge ./scripts/bench_nbc.conf
  - make -C ./build/bench_nbc/build/bench_nbc docs
  - mkdir -p public/bench_nbc
  - mv ./build/bench_nbc/build/bench_nbc/doc/html public/bench_nbc/doc
  artifacts:
    paths:
    - public
  only:
  - master
back to top