.gitlab-ci.yml 4.52 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
   - deploy
Daniel Wortmann's avatar
Daniel Wortmann committed
6 7
   - build-pgi
   - test-pgi
8
   - build-intel-static
Daniel Wortmann's avatar
Daniel Wortmann committed
9 10
   - build-intel
   - test-intel
Daniel Wortmann's avatar
Daniel Wortmann committed
11

12

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

26
test-gfortran-hdf5:
27
  image: iffregistry.fz-juelich.de/fleur/fleur:latest
Daniel Wortmann's avatar
Daniel Wortmann committed
28 29 30 31 32
  stage: test
  cache:
     paths:
       - build
  script:
Daniel Wortmann's avatar
Daniel Wortmann committed
33
    - ulimit -s unlimited ;export juDFT_MPI="mpirun -n 2 --allow-run-as-root ";export OMP_NUM_THREADS=4;cd /builds/fleur/fleur/build;ctest
34
  artifacts:
35
    when: on_failure
36
    paths:
37
      - build/Testing/failed
38
      - build/Testing/test.oldlogs
39 40 41 42
#  only:
#    - schedules
#    - triggers
#    - web
43
  
44
pages:
45
  image: iffregistry.fz-juelich.de/fleur/fleur:latest
Daniel Wortmann's avatar
Daniel Wortmann committed
46 47 48 49
  stage: deploy
  cache:
     paths:
       - build
Daniel Wortmann's avatar
Daniel Wortmann committed
50
       - public
51 52 53
  script:
    - cd /builds/fleur/fleur/build ; make doc
    - mv docs/html/ ../public/
Daniel Wortmann's avatar
Daniel Wortmann committed
54
    - mv /builds/fleur/fleur/docs/Docu_main.html ../public/index.html
Daniel Wortmann's avatar
Daniel Wortmann committed
55 56 57
  environment:
    name: Doxygen
    url: https://fleur.iffgit.fz-juelich.de/fleur
58 59 60
  artifacts:
    paths:
      - public
61 62 63
      - build/fleur
      - build/fleur_MPI
      - build/inpgen
64 65 66
  only:
    - schedules
    - triggers
67 68 69 70 71 72 73 74 75 76
    - web

pages2:
  image: iffregistry.fz-juelich.de/fleur/fleur:mkdocs
  stage: deploy
  cache:
     paths:
       - public
  script:
    - cd /builds/fleur/fleur/docs/mkdocs ; mkdocs build
Daniel Wortmann's avatar
Daniel Wortmann committed
77
    - cp tutorial_scheme/color.css site/css/base.css
78 79 80 81 82 83 84 85 86 87 88
    - mv site ../public/
  environment:
    name: mkdocs
    url: https://fleur.iffgit.fz-juelich.de/fleur
  artifacts:
    paths:
      - public
  only:
    - schedules
    - triggers
    - web
89

90 91 92 93 94 95 96 97 98 99 100 101
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
102
 
103
    
104 105 106 107 108 109 110 111 112 113 114 115
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
116
     
117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138

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
 

139
build-intel:
Daniel Wortmann's avatar
Daniel Wortmann committed
140
  image: iffregistry.fz-juelich.de/fleur/fleur:intel-static
141 142 143
  stage: build-intel
  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
148 149 150 151
  only:
    - schedules
    - triggers
    - web
152 153 154
 
    
test-intel:
Daniel Wortmann's avatar
Daniel Wortmann committed
155
  image: iffregistry.fz-juelich.de/fleur/fleur:intel-static
156 157 158
  stage: test-intel
  cache:
     paths:
Daniel Wortmann's avatar
Daniel Wortmann committed
159
       - build.intel.debug
160
  script:
161
    - set +e && source compilervars.sh intel64 && set -e; ulimit -s unlimited
Daniel Wortmann's avatar
Daniel Wortmann committed
162
    - cd /builds/fleur/fleur/build.intel.debug;ctest
163 164 165
  artifacts:
    when: on_failure
    paths:
Daniel Wortmann's avatar
Daniel Wortmann committed
166 167
      - build.intel.debug/Testing/failed
      - build.intel.debug/Testing/test.oldlogs
168 169 170 171
  only:
     - schedules
     - web
     - triggers
172 173 174 175

gfortran-coverage:
  image: iffregistry.fz-juelich.de/fleur/fleur:latest
  stage: coverage
Daniel Wortmann's avatar
Daniel Wortmann committed
176
  cache: 
Daniel Wortmann's avatar
Daniel Wortmann committed
177
     paths:
Daniel Wortmann's avatar
Daniel Wortmann committed
178
        - build
179
  script:
180
      - cd /builds/fleur/fleur; ./configure.sh -l coverage -flags --coverage GITLAB; cd build.coverage; make -j 4
181
      - lcov --capture --initial -d CMakeFiles -o baseline.info
Daniel Wortmann's avatar
Daniel Wortmann committed
182
      - ulimit -s unlimited ;export juDFT_MPI="mpirun -n 2 --allow-run-as-root ";ctest
183 184 185
      - 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
186
      - mkdir ../public;mv html_out ../public/coverage_html
187 188 189
  artifacts:
    paths:
      - public 
Daniel Wortmann's avatar
Daniel Wortmann committed
190 191 192
  environment:
    name: Coverage
    url: https://fleur.iffgit.fz-juelich.de/fleur/coverage_html
193 194
  only:
      - web
195
      - schedules