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

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

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

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

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