.gitlab-ci.yml 4.54 KB
Newer Older
1
stages:
Daniel Wortmann's avatar
Daniel Wortmann committed
2 3
   - build
   - test
Daniel Wortmann's avatar
Daniel Wortmann committed
4
   - html
Daniel Wortmann's avatar
Daniel Wortmann committed
5 6
   - deploy

7

Daniel Wortmann's avatar
Daniel Wortmann committed
8
build-gfortran-hdf5:
9
  image: iffregistry.fz-juelich.de/fleur/fleur:latest
Daniel Wortmann's avatar
Daniel Wortmann committed
10 11 12 13 14
  stage: build
  cache: 
     paths:
       - build
  script:
15
    - cd /builds/fleur/fleur; ./configure.sh GITLAB; cd build; make -j 4
Daniel Wortmann's avatar
Daniel Wortmann committed
16
  allow_failure: true
17 18 19 20
#  only:
#    - schedules
#    - triggers
#    - web
21

22
test-gfortran-hdf5:
23
  image: iffregistry.fz-juelich.de/fleur/fleur:latest
Daniel Wortmann's avatar
Daniel Wortmann committed
24 25 26 27 28
  stage: test
  cache:
     paths:
       - build
  script:
Daniel Wortmann's avatar
Daniel Wortmann committed
29
    - ulimit -s unlimited ;export juDFT_MPI="mpirun -n 2 --allow-run-as-root ";export OMP_NUM_THREADS=4;cd /builds/fleur/fleur/build;ctest
Daniel Wortmann's avatar
Daniel Wortmann committed
30
  allow_failure: true
31
  artifacts:
32
    when: on_failure
33
    paths:
34
      - build/Testing/failed
35
      - build/Testing/test.oldlogs
36 37 38 39
#  only:
#    - schedules
#    - triggers
#    - web
Daniel Wortmann's avatar
Daniel Wortmann committed
40

41
pages:
42
  image: iffregistry.fz-juelich.de/fleur/fleur:latest
Daniel Wortmann's avatar
Daniel Wortmann committed
43
  stage: deploy
Daniel Wortmann's avatar
Daniel Wortmann committed
44 45
  cache:
     paths:
Daniel Wortmann's avatar
Daniel Wortmann committed
46
        - build
Daniel Wortmann's avatar
Daniel Wortmann committed
47
        - public
Daniel Wortmann's avatar
Daniel Wortmann committed
48
  script:
Daniel Wortmann's avatar
Daniel Wortmann committed
49
    - echo "HTML should be ready from cache..."
Daniel Wortmann's avatar
Daniel Wortmann committed
50
    - mv /builds/fleur/fleur/docs/Docu_main.html /builds/fleur/fleur/public/index.html
Daniel Wortmann's avatar
Daniel Wortmann committed
51
  environment: 
Daniel Wortmann's avatar
Daniel Wortmann committed
52
     name: HTML-Pages
Daniel Wortmann's avatar
Daniel Wortmann committed
53 54 55 56
     url: https://fleur.iffgit.fz-juelich.de/fleur
  artifacts:
    paths:
      - public
Daniel Wortmann's avatar
Daniel Wortmann committed
57 58 59 60
#  only:
#    - schedules
#    - triggers
#    - web
Daniel Wortmann's avatar
Daniel Wortmann committed
61 62 63 64
  
doxygen:
  image: iffregistry.fz-juelich.de/fleur/fleur:latest
  stage: html
Daniel Wortmann's avatar
Daniel Wortmann committed
65 66 67
  cache:
     paths:
       - build
Daniel Wortmann's avatar
Daniel Wortmann committed
68
       - public
69 70
  script:
    - cd /builds/fleur/fleur/build ; make doc
Daniel Wortmann's avatar
Daniel Wortmann committed
71
    - mkdir ../public
Daniel Wortmann's avatar
Daniel Wortmann committed
72
    - mv docs/html/ ../public/doxygen
73 74 75
  artifacts:
    paths:
      - public
76 77 78
      - build/fleur
      - build/fleur_MPI
      - build/inpgen
79 80 81
  only:
    - schedules
    - triggers
82 83
    - web

84

85 86
build-pgi:
  image: iffregistry.fz-juelich.de/fleur/fleur:pgi
Daniel Wortmann's avatar
Daniel Wortmann committed
87
  stage: build
88 89 90 91 92
  cache: 
     paths:
       - build.pgi
  script:
    - cd /builds/fleur/fleur; ./configure.sh -l pgi ; cd build.pgi; make 
Daniel Wortmann's avatar
Daniel Wortmann committed
93
  allow_failure: true
94 95 96 97
  only:
    - schedules
    - triggers
    - web
98
 
99
    
100 101
test-pgi:
  image: iffregistry.fz-juelich.de/fleur/fleur:pgi
Daniel Wortmann's avatar
Daniel Wortmann committed
102 103 104
  stage: test
  dependencies:
    - build-pgi
105 106 107 108 109
  cache:
     paths:
       - build.pgi
  script:
    - cd /builds/fleur/fleur/build.pgi;ctest
Daniel Wortmann's avatar
Daniel Wortmann committed
110
  allow_failure: true
111 112 113 114
  only:
     - schedules
     - web
     - triggers
115
     
116 117 118

build-intel-static:
  image: iffregistry.fz-juelich.de/fleur/fleur:intel-static
Daniel Wortmann's avatar
Daniel Wortmann committed
119
  stage: build
120 121 122 123 124 125 126 127 128 129 130 131
  cache: 
     paths:
       - build.intel-static
  script:
    - set +e && source compilervars.sh intel64 && set -e ; ulimit -s unlimited
    - cd /builds/fleur/fleur; ./configure.sh -l intel-static INTEL_DOCKER_STATIC ; cd build.intel-static; make -j 4
  artifacts:
    when: on_success
    paths:
    - build.intel-static/fleur
    - build.intel-static/fleur_MPI
    - build.intel-static/inpgen
Daniel Wortmann's avatar
Daniel Wortmann committed
132
  allow_failure: true
133 134 135 136 137 138
  only:
    - schedules
    - triggers
    - web
 

139
build-intel:
Daniel Wortmann's avatar
Daniel Wortmann committed
140
  image: iffregistry.fz-juelich.de/fleur/fleur:intel-static
Daniel Wortmann's avatar
Daniel Wortmann committed
141
  stage: build
142 143
  cache: 
     paths:
Daniel Wortmann's avatar
Daniel Wortmann committed
144
       - build.intel.debug
145
  script:
146
    - set +e && source compilervars.sh intel64 && set -e ; ulimit -s unlimited
Daniel Wortmann's avatar
Daniel Wortmann committed
147
    - cd /builds/fleur/fleur; CC=gcc FC=mpiifort  FLEUR_LIBRARIES="-lmkl_scalapack_lp64;-lmkl_blacs_intelmpi_lp64" ./configure.sh -t -d -l intel INTEL_MPI ; cd build.intel.debug; make -j 4
Daniel Wortmann's avatar
Daniel Wortmann committed
148
  allow_failure: true
149 150 151 152
  only:
    - schedules
    - triggers
    - web
153 154 155
 
    
test-intel:
Daniel Wortmann's avatar
Daniel Wortmann committed
156
  image: iffregistry.fz-juelich.de/fleur/fleur:intel-static
Daniel Wortmann's avatar
Daniel Wortmann committed
157 158 159
  stage: test
  dependencies:
     - build-intel
160 161
  cache:
     paths:
Daniel Wortmann's avatar
Daniel Wortmann committed
162
       - build.intel.debug
163
  script:
164
    - set +e && source compilervars.sh intel64 && set -e; ulimit -s unlimited
Daniel Wortmann's avatar
Daniel Wortmann committed
165
    - cd /builds/fleur/fleur/build.intel.debug;ctest
Daniel Wortmann's avatar
Daniel Wortmann committed
166
  allow_failure: true
167 168 169
  artifacts:
    when: on_failure
    paths:
Daniel Wortmann's avatar
Daniel Wortmann committed
170 171
      - build.intel.debug/Testing/failed
      - build.intel.debug/Testing/test.oldlogs
172 173 174 175
  only:
     - schedules
     - web
     - triggers
176 177 178

gfortran-coverage:
  image: iffregistry.fz-juelich.de/fleur/fleur:latest
Daniel Wortmann's avatar
Daniel Wortmann committed
179
  stage: html
Daniel Wortmann's avatar
Daniel Wortmann committed
180
  cache: 
Daniel Wortmann's avatar
Daniel Wortmann committed
181
     paths:
Daniel Wortmann's avatar
Daniel Wortmann committed
182
        - build
183
  script:
184
      - cd /builds/fleur/fleur; ./configure.sh -l coverage -flags --coverage GITLAB; cd build.coverage; make -j 4
185
      - lcov --capture --initial -d CMakeFiles -o baseline.info
Daniel Wortmann's avatar
Daniel Wortmann committed
186
      - ulimit -s unlimited ;export juDFT_MPI="mpirun -n 2 --allow-run-as-root ";ctest
187 188 189
      - lcov --capture  -d CMakeFiles -o after.info 
      - lcov --add-tracefile baseline.info --add-tracefile after.info -o combined.info
      - genhtml combined.info --output-directory html_out
Daniel Wortmann's avatar
Daniel Wortmann committed
190
      - mkdir ../public;mv html_out ../public/coverage_html
Daniel Wortmann's avatar
Daniel Wortmann committed
191
  allow_failure: true
192 193 194
  artifacts:
    paths:
      - public 
Daniel Wortmann's avatar
Daniel Wortmann committed
195 196 197
  environment:
    name: Coverage
    url: https://fleur.iffgit.fz-juelich.de/fleur/coverage_html
198 199
  only:
      - web
200
      - schedules