.gitlab-ci.yml 3.54 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
Daniel Wortmann's avatar
Daniel Wortmann committed
8
9
   - build-intel
   - test-intel
Daniel Wortmann's avatar
Daniel Wortmann committed
10

11

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

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

68
69
70
71
72
73
74
75
76
77
78
79
#build-pgi:
#  image: iffregistry.fz-juelich.de/fleur/fleur:pgi
#  stage: build-pgi
#  cache: 
#     paths:
#       - build.debug
#  script:
#    - cd /builds/fleur/fleur; ./configure.sh -d AUTO ; cd build.debug; make 
#  only:
#    - schedules
#    - triggers
#    - web
80
 
81
    
82
83
84
85
86
87
88
89
90
91
92
93
#test-pgi:
#  image: iffregistry.fz-juelich.de/fleur/fleur:pgi
#  stage: test-pgi
#  cache:
#     paths:
#       - build.debug
#  script:
#    - cd /builds/fleur/fleur/build.debug;ctest
#  only:
#     - schedules
#     - web
#     - triggers
94
95
96
97
98
99
100
101
     
build-intel:
  image: iffregistry.fz-juelich.de/docker-images/centos7-intel-compilers/extended
  stage: build-intel
  cache: 
     paths:
       - build.intel
  script:
102
    - set +e && source compilervars.sh intel64 && set -e ; ulimit -s unlimited
Daniel Wortmann's avatar
Daniel Wortmann committed
103
    - cd /builds/fleur/fleur; FC=mpiifort  FLEUR_LIBRARIES="-lmkl_scalapack_lp64;-lmkl_blacs_intelmpi_lp64" ./configure.sh -t -l intel INTEL_MPI ; cd build.intel; make 
104
105
106
107
  only:
    - schedules
    - triggers
    - web
108
109
110
111
112
113
114
115
116
 
    
test-intel:
  image: iffregistry.fz-juelich.de/docker-images/centos7-intel-compilers/extended
  stage: test-intel
  cache:
     paths:
       - build.intel
  script:
117
    - set +e && source compilervars.sh intel64 && set -e; ulimit -s unlimited
118
    - cd /builds/fleur/fleur/build.intel;ctest
119
120
121
  artifacts:
    when: on_failure
    paths:
122
      - build/Testing/failed
123
      - build/Testing/test.oldlogs
124
125
126
127
  only:
     - schedules
     - web
     - triggers
128
129
130
131

gfortran-coverage:
  image: iffregistry.fz-juelich.de/fleur/fleur:latest
  stage: coverage
Daniel Wortmann's avatar
Daniel Wortmann committed
132
  cache: 
Daniel Wortmann's avatar
Daniel Wortmann committed
133
     paths:
Daniel Wortmann's avatar
Daniel Wortmann committed
134
        - build
135
136
137
  script:
      - cd /builds/fleur/fleur; ./configure.sh -l coverage -flags --coverage GITLAB; cd build.coverage; make
      - lcov --capture --initial -d CMakeFiles -o baseline.info
Daniel Wortmann's avatar
Daniel Wortmann committed
138
      - ulimit -s unlimited ;export juDFT_MPI="mpirun -n 2 --allow-run-as-root ";ctest
139
140
141
      - 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
142
      - mkdir ../public;mv html_out ../public/coverage_html
143
144
145
  artifacts:
    paths:
      - public 
Daniel Wortmann's avatar
Daniel Wortmann committed
146
147
148
  environment:
    name: Coverage
    url: https://fleur.iffgit.fz-juelich.de/fleur/coverage_html
149
150
  only:
      - web
151
      - schedules