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

west_doc_build:
 tags: [rcc,docker,node-01]
 stage: doc
jhskone's avatar
jhskone committed
56
 image: debian:7
jhskone's avatar
jhskone committed
57
58
59
60
 before_script:
   - apt-get update > /dev/null
   - apt-get install -qq build-essential > /dev/null
   - apt-get install -qq apt-utils > /dev/null
jhskone's avatar
jhskone committed
61
   - apt-get install -qq wget git > /dev/null
jhskone's avatar
jhskone committed
62
63
64
65
   - apt-get -qq install vim > /dev/null 
   - export TZ="US/Central"
   - rm -f /etc/localtime
   - cp  /usr/share/zoneinfo/$TZ  /etc/localtime
jhskone's avatar
jhskone committed
66
   - apt-get install -qq texlive-latex-base > /dev/null
jhskone's avatar
jhskone committed
67
68
69
70
71
72
73
74
75
76
77
78
79
   - 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
   - export PATH=$PY_DIR/bin:$PATH
jhskone's avatar
jhskone committed
80
   - wget https://bootstrap.pypa.io/get-pip.py
jhskone's avatar
jhskone committed
81
   - python get-pip.py
82
83
   - which python
   - which pip 
jhskone's avatar
jhskone committed
84
85
86
   - pip install nbsphinx
   - pip install sphinx_rtd_theme
   - pip install ipython
jhskone's avatar
jhskone committed
87
88
89
90
91
92
 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
93
   - ls _build/html