.gitlab-ci.yml 2.49 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
jhskone's avatar
jhskone committed
6
 - doc
Marco Govoni's avatar
Marco Govoni committed
7
 - test
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
11
12
13
 tags: [rcc,docker,node-01]
 stage: build
 image: ubuntu:latest
 before_script:
Marco Govoni's avatar
Marco Govoni committed
14
15
   - apt-get update > /dev/null
   - apt-get install -qq git > /dev/null 
Marco Govoni's avatar
Marco Govoni committed
16
   - apt-get install -qq build-essential gfortran wget python-pip python-dev > /dev/null
Marco Govoni's avatar
Marco Govoni committed
17
18
   - 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
19
20
21
 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
22
   - git describe
Marco Govoni's avatar
Marco Govoni committed
23
24
   - ./configure
   - make -j pw
Marco Govoni's avatar
Marco Govoni committed
25
   - ls bin
Marco Govoni's avatar
Marco Govoni committed
26
   - git clone -b $CI_COMMIT_REF_NAME $CI_REPOSITORY_URL West
Marco Govoni's avatar
Marco Govoni committed
27
   - cd West
Marco Govoni's avatar
Marco Govoni committed
28
   - git describe
Marco Govoni's avatar
Marco Govoni committed
29
30
   - make
   - ls ../bin 
Marco Govoni's avatar
Marco Govoni committed
31
32
33
34
35
36

west_test_gamma:
 tags: [rcc,docker,node-01]
 stage: test
 image: ubuntu:latest
 before_script:
Marco Govoni's avatar
Marco Govoni committed
37
38
   - apt-get update > /dev/null
   - apt-get install -qq git > /dev/null 
Marco Govoni's avatar
Marco Govoni committed
39
   - apt-get install -qq build-essential gfortran wget python-pip python-dev > /dev/null
Marco Govoni's avatar
Marco Govoni committed
40
41
   - 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
42
43
44
 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
45
46
   - ./configure FFLAGS="-ffpe-summary=none" > /dev/null
   - make -j pw > /dev/null
Marco Govoni's avatar
Marco Govoni committed
47
   - git clone -b $CI_COMMIT_REF_NAME $CI_REPOSITORY_URL West
Marco Govoni's avatar
Marco Govoni committed
48
49
   - cd West 
   - make > /dev/null
Marco Govoni's avatar
Marco Govoni committed
50
   - cd test-suite 
Marco Govoni's avatar
Marco Govoni committed
51
   - make NP=28 NI=1 NT=1 
jhskone's avatar
jhskone committed
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83

west_doc_build:
 tags: [rcc,docker,node-01]
 stage: doc
 image: gcc:4.9.4
 before_script:
   - apt-get update > /dev/null
   - apt-get install -qq build-essential > /dev/null
   - apt-get install -qq apt-utils > /dev/null
   - apt-get -qq install vim > /dev/null 
   - export TZ="US/Central"
   - rm -f /etc/localtime
   - cp  /usr/share/zoneinfo/$TZ  /etc/localtime
   - apt-get install -qq latex2html > /dev/null
   - apt-get install -qq pandoc > /dev/null
   - cd /opt
   - export PY_VERSION="3.5.4"
   - wget https://www.python.org/ftp/python/$PY_VERSION/Python-$PY_VERSION.tgz
   - tar -xzvf Python-$PY_VERSION.tgz
   - cd Python-$PY_VERSION 
   - export PY_DIR="/opt/python"
   - ./configure --prefix $PY_DIR
   - make 
   - make install
   - ln -s $PY_DIR/bin/python3.5 $PY_DIR/bin/python
   - ln -s $PY_DIR/bin/pip3.5 $PY_DIR/bin/pip 
   - export PATH=$PY_DIR/bin:$PATH
 script:
   - git clone -b $CI_COMMIT_REF_NAME $CI_REPOSITORY_URL West
   - cd West
   - git describe
   - cd doc
jhskone's avatar
jhskone committed
84
   - sleep 60m
jhskone's avatar
jhskone committed
85
86
   - make html