.gitlab-ci.yml 4.48 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
  stage: build
11
  artifacts:
Daniel Wortmann's avatar
Daniel Wortmann committed
12 13
     paths:
       - build
Daniel Wortmann's avatar
Daniel Wortmann committed
14
     expire_in: 1h
Daniel Wortmann's avatar
Daniel Wortmann committed
15
  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
  stage: test
  script:
Daniel Wortmann's avatar
Daniel Wortmann committed
26
    - ulimit -s unlimited ;export juDFT_MPI="mpirun -n 2 --allow-run-as-root ";export OMP_NUM_THREADS=4;cd /builds/fleur/fleur/build;ctest
27
  artifacts:
28
    when: on_failure
29
    paths:
30
      - build/Testing/failed
31
      - build/Testing/test.oldlogs
32 33 34 35
#  only:
#    - schedules
#    - triggers
#    - web
Daniel Wortmann's avatar
Daniel Wortmann committed
36

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

80

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

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

135
build-intel:
Daniel Wortmann's avatar
Daniel Wortmann committed
136
  image: iffregistry.fz-juelich.de/fleur/fleur:intel-static
Daniel Wortmann's avatar
Daniel Wortmann committed
137
  stage: build
138 139
  cache: 
     paths:
Daniel Wortmann's avatar
Daniel Wortmann committed
140
       - build.intel.debug
141
  script:
142
    - set +e && source compilervars.sh intel64 && set -e ; ulimit -s unlimited
Daniel Wortmann's avatar
Daniel Wortmann committed
143
    - 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
144
  allow_failure: true
145 146 147 148
  only:
    - schedules
    - triggers
    - web
149 150 151
 
    
test-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 154 155
  stage: test
  dependencies:
     - build-intel
156 157
  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/build.intel.debug;ctest
Daniel Wortmann's avatar
Daniel Wortmann committed
162
  allow_failure: true
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

gfortran-coverage:
  image: iffregistry.fz-juelich.de/fleur/fleur:latest
Daniel Wortmann's avatar
Daniel Wortmann committed
175
  stage: html
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
Daniel Wortmann's avatar
Daniel Wortmann committed
187
  allow_failure: true
188 189 190
  artifacts:
    paths:
      - public 
Daniel Wortmann's avatar
Daniel Wortmann committed
191 192 193
  environment:
    name: Coverage
    url: https://fleur.iffgit.fz-juelich.de/fleur/coverage_html
194 195
  only:
      - web
196
      - schedules