.gitlab-ci.yml 4.72 KB
Newer Older
1
stages:
Daniel Wortmann's avatar
Daniel Wortmann committed
2 3
   - build
   - test
4
   - coverage
Daniel Wortmann's avatar
Daniel Wortmann committed
5
   - html
Daniel Wortmann's avatar
Daniel Wortmann committed
6
   - deploy
Daniel Wortmann's avatar
Daniel Wortmann committed
7 8
   - build-pgi
   - test-pgi
9
   - build-intel-static
Daniel Wortmann's avatar
Daniel Wortmann committed
10 11
   - build-intel
   - test-intel
Daniel Wortmann's avatar
Daniel Wortmann committed
12

13

Daniel Wortmann's avatar
Daniel Wortmann committed
14
build-gfortran-hdf5:
15
  image: iffregistry.fz-juelich.de/fleur/fleur:latest
Daniel Wortmann's avatar
Daniel Wortmann committed
16 17 18 19 20
  stage: build
  cache: 
     paths:
       - build
  script:
21
    - cd /builds/fleur/fleur; ./configure.sh GITLAB; cd build; make -j 4
22 23 24 25
#  only:
#    - schedules
#    - triggers
#    - web
26

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

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

Daniel Wortmann's avatar
Daniel Wortmann committed
83
mkdocs:
84
  image: iffregistry.fz-juelich.de/fleur/fleur:mkdocs
Daniel Wortmann's avatar
Daniel Wortmann committed
85
  stage: html
86 87 88 89 90
  cache:
     paths:
       - public
  script:
    - cd /builds/fleur/fleur/docs/mkdocs ; mkdocs build
Daniel Wortmann's avatar
Daniel Wortmann committed
91
    - cp tutorial_scheme/color.css site/css/base.css
92 93 94 95 96 97 98 99 100 101 102
    - mv site ../public/
  environment:
    name: mkdocs
    url: https://fleur.iffgit.fz-juelich.de/fleur
  artifacts:
    paths:
      - public
  only:
    - schedules
    - triggers
    - web
103

104 105 106 107 108 109 110 111 112 113 114 115
build-pgi:
  image: iffregistry.fz-juelich.de/fleur/fleur:pgi
  stage: build-pgi
  cache: 
     paths:
       - build.pgi
  script:
    - cd /builds/fleur/fleur; ./configure.sh -l pgi ; cd build.pgi; make 
  only:
    - schedules
    - triggers
    - web
116
 
117
    
118 119 120 121 122 123 124 125 126 127 128 129
test-pgi:
  image: iffregistry.fz-juelich.de/fleur/fleur:pgi
  stage: test-pgi
  cache:
     paths:
       - build.pgi
  script:
    - cd /builds/fleur/fleur/build.pgi;ctest
  only:
     - schedules
     - web
     - triggers
130
     
131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152

build-intel-static:
  image: iffregistry.fz-juelich.de/fleur/fleur:intel-static
  stage: build-intel-static
  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
  only:
    - schedules
    - triggers
    - web
 

153
build-intel:
Daniel Wortmann's avatar
Daniel Wortmann committed
154
  image: iffregistry.fz-juelich.de/fleur/fleur:intel-static
155 156 157
  stage: build-intel
  cache: 
     paths:
Daniel Wortmann's avatar
Daniel Wortmann committed
158
       - build.intel.debug
159
  script:
160
    - set +e && source compilervars.sh intel64 && set -e ; ulimit -s unlimited
Daniel Wortmann's avatar
Daniel Wortmann committed
161
    - 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
162 163 164 165
  only:
    - schedules
    - triggers
    - web
166 167 168
 
    
test-intel:
Daniel Wortmann's avatar
Daniel Wortmann committed
169
  image: iffregistry.fz-juelich.de/fleur/fleur:intel-static
170 171 172
  stage: test-intel
  cache:
     paths:
Daniel Wortmann's avatar
Daniel Wortmann committed
173
       - build.intel.debug
174
  script:
175
    - set +e && source compilervars.sh intel64 && set -e; ulimit -s unlimited
Daniel Wortmann's avatar
Daniel Wortmann committed
176
    - cd /builds/fleur/fleur/build.intel.debug;ctest
177 178 179
  artifacts:
    when: on_failure
    paths:
Daniel Wortmann's avatar
Daniel Wortmann committed
180 181
      - build.intel.debug/Testing/failed
      - build.intel.debug/Testing/test.oldlogs
182 183 184 185
  only:
     - schedules
     - web
     - triggers
186 187 188 189

gfortran-coverage:
  image: iffregistry.fz-juelich.de/fleur/fleur:latest
  stage: coverage
Daniel Wortmann's avatar
Daniel Wortmann committed
190
  cache: 
Daniel Wortmann's avatar
Daniel Wortmann committed
191
     paths:
Daniel Wortmann's avatar
Daniel Wortmann committed
192
        - build
193
  script:
194
      - cd /builds/fleur/fleur; ./configure.sh -l coverage -flags --coverage GITLAB; cd build.coverage; make -j 4
195
      - lcov --capture --initial -d CMakeFiles -o baseline.info
Daniel Wortmann's avatar
Daniel Wortmann committed
196
      - ulimit -s unlimited ;export juDFT_MPI="mpirun -n 2 --allow-run-as-root ";ctest
197 198 199
      - 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
200
      - mkdir ../public;mv html_out ../public/coverage_html
201 202 203
  artifacts:
    paths:
      - public 
Daniel Wortmann's avatar
Daniel Wortmann committed
204 205 206
  environment:
    name: Coverage
    url: https://fleur.iffgit.fz-juelich.de/fleur/coverage_html
207 208
  only:
      - web
209
      - schedules