.gitlab-ci.yml 3.03 KB
Newer Older
1

Ralf Mueller's avatar
Ralf Mueller committed
2 3 4 5 6 7 8 9 10 11
variables:
  GIT_SUBMODULE_STRATEGY: recursive

stages:
  - build
  - check

build-gcc64:
  stage: build
  before_script:
12
    - . /sw/rhel6-x64/etc/profile.mistral && module list
Ralf Mueller's avatar
Ralf Mueller committed
13 14 15 16 17
    - module load libtool autoconf automake
    - cd libcdi && git checkout develop && ./autogen.sh && cd ..
    - autoreconf -vfi --no-recursive
  script:
    - module load gcc/6.4.0
18
    - mkdir gcc64 && cd gcc64 && ../configure CC=/sw/rhel6-x64/gcc/gcc-6.4.0/bin/gcc CXX=/sw/rhel6-x64/gcc/gcc-6.4.0/bin/g++ FC=/sw/rhel6-x64/gcc/gcc-6.4.0/bin/gfortran --with-netcdf=/sw/rhel6-x64/netcdf/netcdf_c-4.6.1-gcc64 --with-magics=/sw/rhel6-x64/graphics/magicsxx-2.33.0-gfxonly-gcc48  --with-fftw3 --with-eccodes=/sw/rhel6-x64/eccodes/eccodes-2.6.0-gcc64 --with-udunits2=/sw/rhel6-x64/util/udunits-2.2.26-gcc64 CXXFLAGS="-I/sw/rhel6-x64/numerics/fftw-3.3.7-openmp-gcc64/include" LDFLAGS="-L/sw/rhel6-x64/numerics/fftw-3.3.7-openmp-gcc64/lib -Wl,-rpath,/sw/rhel6-x64/numerics/fftw-3.3.7-openmp-gcc64/lib -lfftw3  -Wl,-rpath,/sw/rhel6-x64/eccodes/eccodes-2.6.0-gcc64/lib -Wl,-rpath,/sw/rhel6-x64/graphics/magicsxx-2.33.0-gfxonly-gcc48/lib" --with-curl --with-ossp-uuid --with-proj=/sw/rhel6-x64/graphics/proj5-5.2.0-gcc64 && make -j 4
Ralf Mueller's avatar
Ralf Mueller committed
19 20 21 22 23 24
  artifacts:
    paths:
    - /builds/mpim-sw/cdo
    expire_in: 5min
  tags:
    - xen, mistral
25 26
  only:
    - develop
Ralf Mueller's avatar
Ralf Mueller committed
27 28 29 30

check-gcc64:
  stage: check
  needs: ["build-gcc64"]
31 32
  before_script:
    - . /sw/rhel6-x64/etc/profile.mistral && module list
Ralf Mueller's avatar
Ralf Mueller committed
33 34 35 36 37
  script:
    - module load gcc/6.4.0
    - cd gcc64 && make check
  tags:
    - xen, mistral
38 39
  only:
    - develop
Ralf Mueller's avatar
Ralf Mueller committed
40 41 42 43

build-intel18:
  stage: build
  before_script:
44
    - . /sw/rhel6-x64/etc/profile.mistral && module list
Ralf Mueller's avatar
Ralf Mueller committed
45 46 47 48 49
    - module load libtool autoconf automake
    - cd libcdi && git checkout develop && ./autogen.sh && cd ..
    - autoreconf -vfi --no-recursive
  script:
    - module load gcc/6.4.0 intel
50
    - mkdir intel18  && cd intel18 && ../configure CC=/sw/rhel6-x64/intel/intel-18.0.4/bin/icc CXX=/sw/rhel6-x64/intel/intel-18.0.4/bin/icpc  FC=/sw/rhel6-x64/intel/intel-18.0.4/bin/ifort --with-netcdf=/sw/rhel6-x64/netcdf/netcdf_c-4.6.1-gcc64 --with-magics=/sw/rhel6-x64/graphics/magicsxx-2.33.0-gfxonly-gcc48  --with-fftw3 --with-eccodes=/sw/rhel6-x64/eccodes/eccodes-2.6.0-gcc64 --with-udunits2=/sw/rhel6-x64/util/udunits-2.2.26-gcc64 CXXFLAGS="-I/sw/rhel6-x64/numerics/fftw-3.3.7-openmp-gcc64/include" LDFLAGS="-L/sw/rhel6-x64/numerics/fftw-3.3.7-openmp-gcc64/lib -Wl,-rpath,/sw/rhel6-x64/numerics/fftw-3.3.7-openmp-gcc64/lib -lfftw3  -Wl,-rpath,/sw/rhel6-x64/eccodes/eccodes-2.6.0-gcc64/lib -Wl,-rpath,/sw/rhel6-x64/graphics/magicsxx-2.33.0-gfxonly-gcc48/lib" --with-curl --with-ossp-uuid --with-proj=/sw/rhel6-x64/graphics/proj5-5.2.0-gcc64 && make -j 4
Ralf Mueller's avatar
Ralf Mueller committed
51 52 53 54 55 56
  artifacts:
    paths:
    - /builds/mpim-sw/cdo
    expire_in: 5min
  tags:
    - xen, mistral
57 58
  only:
    - develop
Ralf Mueller's avatar
Ralf Mueller committed
59 60 61 62

check-intel18:
  stage: check
  needs: ["build-intel18"]
63 64
  before_script:
    - . /sw/rhel6-x64/etc/profile.mistral && module list
Ralf Mueller's avatar
Ralf Mueller committed
65 66 67 68 69
  script:
    - module load gcc/6.4.0 intel
    - cd intel18 && make check
  tags:
    - xen, mistral
70 71
  only:
    - develop