.gitlab-ci.yml 1.28 KB
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

30
program-test:
niklas.baumgarten's avatar
niklas.baumgarten committed
31
32
  stage: test

33
34
35
36
  only:
    - branches


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

  script:
niklas.baumgarten's avatar
niklas.baumgarten committed
51
52
    - cd tests
    - mpirun -n 4 TestMainProgram
niklas.baumgarten's avatar
niklas.baumgarten committed
53

54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
downstream-test:
  stage: test

  only:
    variables:
      - $CI_PIPELINE_SOURCE == "pipeline"
      # Todo define remote branch maybe with variables

  before_script:
    - module add foss
    - module add Anaconda3
    - tar xjf sprng5.tar.bz2
    - cd sprng5
    - ./configure --with-mpi=yes --with-fortran=no
    - make -j
    - cd ..
    - cd mpp
    - git fetch
    - git pull origin feature
    - cd ..
    - mkdir build
    - cd build
    - cmake ..
    - make -j

  script:
    - cd tests
    - mpirun -n 4 TestMainProgram
niklas.baumgarten's avatar
niklas.baumgarten committed
82
83