.gitlab-ci.yml 4.25 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
39
  stage: deploy
Daniel Wortmann's avatar
Daniel Wortmann committed
40
  script:
Daniel Wortmann's avatar
Daniel Wortmann committed
41
    - echo "HTML should be ready from cache..."
Daniel Wortmann's avatar
Daniel Wortmann committed
42
    - mv /builds/fleur/fleur/docs/Docu_main.html /builds/fleur/fleur/public/index.html
Daniel Wortmann's avatar
Daniel Wortmann committed
43
  environment: 
Daniel Wortmann's avatar
Daniel Wortmann committed
44
     name: HTML-Pages
Daniel Wortmann's avatar
Daniel Wortmann committed
45 46 47 48
     url: https://fleur.iffgit.fz-juelich.de/fleur
  artifacts:
    paths:
      - public
Daniel Wortmann's avatar
Daniel Wortmann committed
49 50
  only:
    - web
Daniel Wortmann's avatar
Daniel Wortmann committed
51 52 53 54
  
doxygen:
  image: iffregistry.fz-juelich.de/fleur/fleur:latest
  stage: html
55 56
  script:
    - cd /builds/fleur/fleur/build ; make doc
Daniel Wortmann's avatar
Daniel Wortmann committed
57
    - mkdir ../public
Daniel Wortmann's avatar
Daniel Wortmann committed
58
    - mv docs/html/ ../public/doxygen
59 60 61
  artifacts:
    paths:
      - public
62 63 64
      - build/fleur
      - build/fleur_MPI
      - build/inpgen
65
  only:
66 67
    - web

68

69 70
build-pgi:
  image: iffregistry.fz-juelich.de/fleur/fleur:pgi
Daniel Wortmann's avatar
Daniel Wortmann committed
71
  stage: build
72
  artifacts: 
73 74
     paths:
       - build.pgi
75
     expire_in: 1h
76 77
  script:
    - cd /builds/fleur/fleur; ./configure.sh -l pgi ; cd build.pgi; make 
Daniel Wortmann's avatar
Daniel Wortmann committed
78
  allow_failure: true
79 80 81 82
  only:
    - schedules
    - triggers
    - web
83
 
84
    
85 86
test-pgi:
  image: iffregistry.fz-juelich.de/fleur/fleur:pgi
Daniel Wortmann's avatar
Daniel Wortmann committed
87 88 89
  stage: test
  dependencies:
    - build-pgi
90 91
  script:
    - cd /builds/fleur/fleur/build.pgi;ctest
Daniel Wortmann's avatar
Daniel Wortmann committed
92
  allow_failure: true
93 94 95 96
  only:
     - schedules
     - web
     - triggers
97
     
98 99 100

build-intel-static:
  image: iffregistry.fz-juelich.de/fleur/fleur:intel-static
Daniel Wortmann's avatar
Daniel Wortmann committed
101
  stage: build
102
  artifacts: 
103 104
     paths:
       - build.intel-static
105
     expire_in: 1h
106 107 108 109 110 111 112 113 114
  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
115
  allow_failure: true
116 117 118 119 120 121
  only:
    - schedules
    - triggers
    - web
 

122
build-intel:
Daniel Wortmann's avatar
Daniel Wortmann committed
123
  image: iffregistry.fz-juelich.de/fleur/fleur:intel-static
Daniel Wortmann's avatar
Daniel Wortmann committed
124
  stage: build
125
  artifacts: 
126
     paths:
Daniel Wortmann's avatar
Daniel Wortmann committed
127
       - build.intel.debug
128
     expire_in: 1h
129
  script:
130
    - set +e && source compilervars.sh intel64 && set -e ; ulimit -s unlimited
131
    - 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
132
  allow_failure: true
133 134 135 136
  only:
    - schedules
    - triggers
    - web
137 138 139
 
    
test-intel:
Daniel Wortmann's avatar
Daniel Wortmann committed
140
  image: iffregistry.fz-juelich.de/fleur/fleur:intel-static
Daniel Wortmann's avatar
Daniel Wortmann committed
141 142 143
  stage: test
  dependencies:
     - build-intel
144
  script:
145
    - set +e && source compilervars.sh intel64 && set -e; ulimit -s unlimited
Daniel Wortmann's avatar
Daniel Wortmann committed
146
    - cd /builds/fleur/fleur/build.intel.debug;ctest
Daniel Wortmann's avatar
Daniel Wortmann committed
147
  allow_failure: true
148 149 150
  artifacts:
    when: on_failure
    paths:
Daniel Wortmann's avatar
Daniel Wortmann committed
151 152
      - build.intel.debug/Testing/failed
      - build.intel.debug/Testing/test.oldlogs
153 154 155 156
  only:
     - schedules
     - web
     - triggers
157 158 159

gfortran-coverage:
  image: iffregistry.fz-juelich.de/fleur/fleur:latest
Daniel Wortmann's avatar
Daniel Wortmann committed
160
  stage: html
161
  script:
162
      - cd /builds/fleur/fleur; ./configure.sh -l coverage -flags --coverage GITLAB; cd build.coverage; make -j 4
163
      - lcov --capture --initial -d CMakeFiles -o baseline.info
Daniel Wortmann's avatar
Daniel Wortmann committed
164
      - ulimit -s unlimited ;export juDFT_MPI="mpirun -n 2 --allow-run-as-root ";ctest
165 166 167
      - 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
168
      - mkdir ../public;mv html_out ../public/coverage_html
Daniel Wortmann's avatar
Daniel Wortmann committed
169
  allow_failure: true
170 171 172
  artifacts:
    paths:
      - public 
Daniel Wortmann's avatar
Daniel Wortmann committed
173 174 175
  environment:
    name: Coverage
    url: https://fleur.iffgit.fz-juelich.de/fleur/coverage_html
176 177
  only:
      - web
178