.gitlab-ci.yml 4.5 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
16 17 18 19
#  only:
#    - schedules
#    - triggers
#    - web
20

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

39
pages:
40
  image: iffregistry.fz-juelich.de/fleur/fleur:latest
41
  stage: deploy
Daniel Wortmann's avatar
Daniel Wortmann committed
42 43
  cache:
     paths:
Daniel Wortmann's avatar
Daniel Wortmann committed
44
        - build
Daniel Wortmann's avatar
Daniel Wortmann committed
45
        - public
Daniel Wortmann's avatar
Daniel Wortmann committed
46
  script:
Daniel Wortmann's avatar
Daniel Wortmann committed
47
    - echo "HTML should be ready from cache..."
Daniel Wortmann's avatar
Daniel Wortmann committed
48
    - mv /builds/fleur/fleur/docs/Docu_main.html /builds/fleur/fleur/public/index.html
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
     url: https://fleur.iffgit.fz-juelich.de/fleur
  artifacts:
    paths:
      - public
Daniel Wortmann's avatar
Daniel Wortmann committed
55 56 57 58
  only:
    - schedules
    - triggers
    - web
Daniel Wortmann's avatar
Daniel Wortmann committed
59 60 61 62
  
doxygen:
  image: iffregistry.fz-juelich.de/fleur/fleur:latest
  stage: html
63 64 65
  cache:
     paths:
       - build
Daniel Wortmann's avatar
Daniel Wortmann committed
66
       - public
67 68
  script:
    - cd /builds/fleur/fleur/build ; make doc
Daniel Wortmann's avatar
Daniel Wortmann committed
69
    - mkdir ../public
Daniel Wortmann's avatar
Daniel Wortmann committed
70
    - mv docs/html/ ../public/doxygen
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

82

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

build-intel-static:
  image: iffregistry.fz-juelich.de/fleur/fleur:intel-static
Daniel Wortmann's avatar
Daniel Wortmann committed
117
  stage: build
118 119 120 121 122 123 124 125 126 127 128 129
  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
130
  allow_failure: true
131 132 133 134 135 136
  only:
    - schedules
    - triggers
    - web
 

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

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