.gitlab-ci.yml 893 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
    - mkdir build
    - cd build
    - cmake ..
    - make -j

niklas.baumgarten's avatar
niklas.baumgarten committed
26 27 28
#  cache:
#    paths:
#      - sprng5
niklas.baumgarten's avatar
niklas.baumgarten committed
29

niklas.baumgarten's avatar
niklas.baumgarten committed
30
integration-test:
31 32 33 34 35
#  only:
#    - feature
#    - master
#    variables:
#      - $CI_PIPELINE_SOURCE == "pipeline"
niklas.baumgarten's avatar
niklas.baumgarten committed
36

niklas.baumgarten's avatar
niklas.baumgarten committed
37 38 39 40 41
  stage: test

  before_script:
    - module add foss
    - module add Anaconda3
niklas.baumgarten's avatar
niklas.baumgarten committed
42 43 44 45 46
    - tar xjf sprng5.tar.bz2
    - cd sprng5
    - ./configure --with-mpi=yes --with-fortran=no
    - make -j
    - cd ..
niklas.baumgarten's avatar
niklas.baumgarten committed
47 48 49 50
    - mkdir build
    - cd build
    - cmake ..
    - make -j
niklas.baumgarten's avatar
niklas.baumgarten committed
51 52

  script:
niklas.baumgarten's avatar
niklas.baumgarten committed
53 54 55
    - cd tests
    - mpirun -n 4 TestMainProgram
#    - python python/test_experiments.py
niklas.baumgarten's avatar
niklas.baumgarten committed
56 57 58