.gitlab-ci.yml 4.68 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 7
   - deploy

8

Daniel Wortmann's avatar
Daniel Wortmann committed
9
build-gfortran-hdf5:
10
  image: iffregistry.fz-juelich.de/fleur/fleur:latest
Daniel Wortmann's avatar
Daniel Wortmann committed
11 12 13 14 15
  stage: build
  cache: 
     paths:
       - build
  script:
16
    - cd /builds/fleur/fleur; ./configure.sh GITLAB; cd build; make -j 4
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
30
  artifacts:
31
    when: on_failure
32
    paths:
33
      - build/Testing/failed
34
      - build/Testing/test.oldlogs
35 36 37 38
#  only:
#    - schedules
#    - triggers
#    - web
Daniel Wortmann's avatar
Daniel Wortmann committed
39

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

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

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

build-intel-static:
  image: iffregistry.fz-juelich.de/fleur/fleur:intel-static
Daniel Wortmann's avatar
Daniel Wortmann committed
132
  stage: build
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150
  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
 

151
build-intel:
Daniel Wortmann's avatar
Daniel Wortmann committed
152
  image: iffregistry.fz-juelich.de/fleur/fleur:intel-static
Daniel Wortmann's avatar
Daniel Wortmann committed
153
  stage: build
154 155
  cache: 
     paths:
Daniel Wortmann's avatar
Daniel Wortmann committed
156
       - build.intel.debug
157
  script:
158
    - set +e && source compilervars.sh intel64 && set -e ; ulimit -s unlimited
Daniel Wortmann's avatar
Daniel Wortmann committed
159
    - 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
160 161 162 163
  only:
    - schedules
    - triggers
    - web
164 165 166
 
    
test-intel:
Daniel Wortmann's avatar
Daniel Wortmann committed
167
  image: iffregistry.fz-juelich.de/fleur/fleur:intel-static
Daniel Wortmann's avatar
Daniel Wortmann committed
168 169 170
  stage: test
  dependencies:
     - build-intel
171 172
  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