.gitlab-ci.yml 3.34 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:
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

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

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

gfortran-coverage:
  image: iffregistry.fz-juelich.de/fleur/fleur:latest
  stage: coverage
Daniel Wortmann's avatar
Daniel Wortmann committed
125
  cache: 
Daniel Wortmann's avatar
Daniel Wortmann committed
126
     paths:
Daniel Wortmann's avatar
Daniel Wortmann committed
127
        - build
128 129 130
  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
131
      - ulimit -s unlimited ;export juDFT_MPI="mpirun -n 2 --allow-run-as-root ";ctest
132 133 134
      - 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
135
      - mkdir ../public;mv html_out ../public/coverage_html
136 137 138
  artifacts:
    paths:
      - public 
Daniel Wortmann's avatar
Daniel Wortmann committed
139 140 141
  environment:
    name: Coverage
    url: https://fleur.iffgit.fz-juelich.de/fleur/coverage_html
142 143
  only:
      - web
Daniel Wortmann's avatar
Daniel Wortmann committed
144
      - schedules