.gitlab-ci.yml 3.77 KB
Newer Older
Marco Govoni's avatar
Marco Govoni committed
1
2
variables:
 GIT_STRATEGY: none
Marco Govoni's avatar
Marco Govoni committed
3

Marco Govoni's avatar
Marco Govoni committed
4
5
stages:
 - build
Marco Govoni's avatar
Marco Govoni committed
6
 - test
Marco Govoni's avatar
Marco Govoni committed
7
 - doc
Marco Govoni's avatar
Marco Govoni committed
8

Marco Govoni's avatar
Marco Govoni committed
9
west_build:
Marco Govoni's avatar
Marco Govoni committed
10
 tags: [rcc,docker,node-01]
jhskone's avatar
jhskone committed
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
 stage: build
 image: ubuntu:latest
 before_script:
   - apt-get update > /dev/null
   - apt-get install -qq git > /dev/null 
   - apt-get install -qq build-essential gfortran wget python-pip python-dev > /dev/null
   - apt-get install -qq libopenmpi-dev openmpi-bin > /dev/null
   - apt-get install -qq libblas-dev liblapack-dev fftw3 fftw3-dev pkg-config > /dev/null
 script:
   - git clone -b 'qe-6.1.0' --single-branch --depth 1 https://gitlab.com/QEF/q-e.git QEDIR
   - cd QEDIR
   - git describe
   - ./configure
   - make -j pw
   - ls bin
   - git clone -b $CI_COMMIT_REF_NAME $CI_REPOSITORY_URL West
   - cd West
   - git describe
   - make
   - ls ../bin 

west_build_intel:
 tags: [rcc,docker,node-01]
Marco Govoni's avatar
Marco Govoni committed
34
 stage: build
35
 image: centos:centos7
Marco Govoni's avatar
Marco Govoni committed
36
 before_script:
37
38
39
40
41
42
43
44
45
46
47
48
49
50
   - yum -y update > /dev/null
   - yum -y install yum-utils > /dev/null
   - yum -y install centos-release-scl-rh > /dev/null
   - yum -y install vim > /dev/null 
   - yum -y install devtoolset-3-gcc > /dev/null
   - yum -y install devtoolset-3-gcc-gfortran > /dev/null
   - yum -y install wget pkgconfig git make > /dev/null
   - yum -y install openmpi3-devel > /dev/null
   - yum -y install blas-devel lapack-devel fftw-devel > /dev/null
   - yum -y install libblas-dev liblapack-dev fftw3 fftw3-dev pkg-config > /dev/null
   - export TZ="US/Central"
   - rm -f /etc/localtime
   - cp  /usr/share/zoneinfo/$TZ  /etc/localtime
   - source /opt/rh/devtoolset-3/enable
Marco Govoni's avatar
Marco Govoni committed
51
 script:
52
53
54
   - echo "JHSKONE"
   - echo "$PATH"
   - echo "$LD_LIBRARY_PATH"
Marco Govoni's avatar
Marco Govoni committed
55
56
   - git clone -b 'qe-6.1.0' --single-branch --depth 1 https://gitlab.com/QEF/q-e.git QEDIR
   - cd QEDIR
Marco Govoni's avatar
Marco Govoni committed
57
   - git describe
jhskone's avatar
jhskone committed
58
59
   - export PATH=/opt/intel/impi/5.1.3.210/bin:/opt/intel/2016up3/bin:$PATH
   - export LD_LIBRARY_PATH=/opt/intel/impi/5.1.3.210/lib:/opt/intel/2016up3/lib/intel64:/opt/intel/2016up3/ipp/lib/intel64:$LD_LIBRARY_PATH
60
61
62
63
64
65
   - export CFLAGS="-O3 -xHost -fno-alias -ansi-alias -g -mkl"
   - export FFLAGS="-O3 -xHost -fno-alias -ansi-alias -g -mkl"
   - export BLAS_LIBS_SWITCH="external"
   - export BLAS_LIBS=" -lmkl_intel_lp64  -lmkl_sequential -lmkl_core"
   - export LAPACK_LIBS_SWITCH="external"
   - export LAPACK_LIBS=""
jhskone's avatar
jhskone committed
66
67
   - which ifort
   - which mpiifort
68
   - ./configure --enable-openmp 
69
   - sleep 600s
Marco Govoni's avatar
Marco Govoni committed
70
   - make -j pw
Marco Govoni's avatar
Marco Govoni committed
71
   - ls bin
Marco Govoni's avatar
Marco Govoni committed
72
   - git clone -b $CI_COMMIT_REF_NAME $CI_REPOSITORY_URL West
Marco Govoni's avatar
Marco Govoni committed
73
   - cd West
Marco Govoni's avatar
Marco Govoni committed
74
   - git describe
Marco Govoni's avatar
Marco Govoni committed
75
76
   - make
   - ls ../bin 
Marco Govoni's avatar
Marco Govoni committed
77
78
79
80
81
82

west_test_gamma:
 tags: [rcc,docker,node-01]
 stage: test
 image: ubuntu:latest
 before_script:
Marco Govoni's avatar
Marco Govoni committed
83
84
   - apt-get update > /dev/null
   - apt-get install -qq git > /dev/null 
Marco Govoni's avatar
Marco Govoni committed
85
   - apt-get install -qq build-essential gfortran wget python-pip python-dev > /dev/null
Marco Govoni's avatar
Marco Govoni committed
86
87
   - apt-get install -qq libopenmpi-dev openmpi-bin > /dev/null
   - apt-get install -qq libblas-dev liblapack-dev fftw3 fftw3-dev pkg-config > /dev/null
Marco Govoni's avatar
Marco Govoni committed
88
89
90
 script:
   - git clone -b 'qe-6.1.0' --single-branch --depth 1 https://gitlab.com/QEF/q-e.git QEDIR
   - cd QEDIR
Marco Govoni's avatar
Marco Govoni committed
91
92
   - ./configure FFLAGS="-ffpe-summary=none" > /dev/null
   - make -j pw > /dev/null
Marco Govoni's avatar
Marco Govoni committed
93
   - git clone -b $CI_COMMIT_REF_NAME $CI_REPOSITORY_URL West
Marco Govoni's avatar
Marco Govoni committed
94
95
   - cd West 
   - make > /dev/null
Marco Govoni's avatar
Marco Govoni committed
96
   - cd test-suite 
Marco Govoni's avatar
Marco Govoni committed
97
   - make NP=28 NI=1 NT=1 
jhskone's avatar
jhskone committed
98
99
100
101

west_doc_build:
 tags: [rcc,docker,node-01]
 stage: doc
102
 image: continuumio/miniconda3:latest
jhskone's avatar
jhskone committed
103
104
105
 before_script:
   - apt-get update > /dev/null
   - export TZ="US/Central"
106
107
   - apt-get install -qq make > /dev/null
   - apt-get install -qq pandoc > /dev/null
jhskone's avatar
jhskone committed
108
109
   - rm -f /etc/localtime
   - cp  /usr/share/zoneinfo/$TZ  /etc/localtime
110
111
112
113
   - pip install -q --upgrade pip
   - pip install -q nbsphinx
   - pip install -q sphinx_rtd_theme
   - pip install -q ipython
jhskone's avatar
jhskone committed
114
115
116
117
118
119
 script:
   - git clone -b $CI_COMMIT_REF_NAME $CI_REPOSITORY_URL West
   - cd West
   - git describe
   - cd doc
   - make html
jhskone's avatar
jhskone committed
120
   - ls _build/html