.gitlab-ci.yml 4.86 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 57 58 59 60 61 62 63 64
     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
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
    - mv docs/html/ ../public/doxygen
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
Daniel Wortmann's avatar
Daniel Wortmann committed
92
    - mv site ../../public/site
93 94 95 96 97 98 99
  artifacts:
    paths:
      - public
  only:
    - schedules
    - triggers
    - web
100

101 102
build-pgi:
  image: iffregistry.fz-juelich.de/fleur/fleur:pgi
Daniel Wortmann's avatar
Daniel Wortmann committed
103
  stage: build
104 105 106 107 108
  cache: 
     paths:
       - build.pgi
  script:
    - cd /builds/fleur/fleur; ./configure.sh -l pgi ; cd build.pgi; make 
Daniel Wortmann's avatar
Daniel Wortmann committed
109
  allow_failure: true
110 111 112 113
  only:
    - schedules
    - triggers
    - web
114
 
115
    
116 117
test-pgi:
  image: iffregistry.fz-juelich.de/fleur/fleur:pgi
Daniel Wortmann's avatar
Daniel Wortmann committed
118 119 120
  stage: test
  dependencies:
    - build-pgi
121 122 123 124 125
  cache:
     paths:
       - build.pgi
  script:
    - cd /builds/fleur/fleur/build.pgi;ctest
Daniel Wortmann's avatar
Daniel Wortmann committed
126
  allow_failure: true
127 128 129 130
  only:
     - schedules
     - web
     - triggers
131
     
132 133 134

build-intel-static:
  image: iffregistry.fz-juelich.de/fleur/fleur:intel-static
Daniel Wortmann's avatar
Daniel Wortmann committed
135
  stage: build
136 137 138 139 140 141 142 143 144 145 146 147
  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
148
  allow_failure: true
149 150 151 152 153 154
  only:
    - schedules
    - triggers
    - web
 

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

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