.gitlab-ci.yml 822 Bytes
Newer Older
niklas.baumgarten's avatar
niklas.baumgarten committed
1
stages:
niklas.baumgarten's avatar
niklas.baumgarten committed
2 3 4 5 6 7 8 9 10 11 12 13 14 15
  - build
  - test

build-mpp:
  stage: build

  variables:
    GIT_SUBMODULE_STRATEGY: recursive

  before_script:
    - module add foss
    - module add Anaconda3

  script:
niklas.baumgarten's avatar
niklas.baumgarten committed
16 17 18 19 20
    - tar xjf sprng5.tar.bz2
    - cd sprng5
    - ./configure --with-mpi=yes --with-fortran=no
    - make -j
    - cd ..
niklas.baumgarten's avatar
niklas.baumgarten committed
21 22 23 24 25 26
    - mkdir build
    - cd build
    - cmake ..
    - make -j

integration-test:
niklas.baumgarten's avatar
niklas.baumgarten committed
27
  only:
niklas.baumgarten's avatar
niklas.baumgarten committed
28 29
    variables:
      - $CI_PIPELINE_SOURCE == "pipeline"
niklas.baumgarten's avatar
niklas.baumgarten committed
30

niklas.baumgarten's avatar
niklas.baumgarten committed
31 32 33 34 35
  stage: test

  before_script:
    - module add foss
    - module add Anaconda3
niklas.baumgarten's avatar
niklas.baumgarten committed
36 37 38 39 40 41 42 43 44
    - tar xjf sprng5.tar.bz2
    - cd sprng5
    - ./configure --with-mpi=yes --with-fortran=no
    - make -j
    - cd ..
    - mkdir build
    - cd build
    - cmake ..
    - make -j
niklas.baumgarten's avatar
niklas.baumgarten committed
45 46

  script:
niklas.baumgarten's avatar
niklas.baumgarten committed
47 48 49
    - cd tests
    - mpirun -n 4 TestMainProgram
#    - python python/test_experiments.py
niklas.baumgarten's avatar
niklas.baumgarten committed
50 51 52