Commit 2fec378e authored by Marco Govoni's avatar Marco Govoni
Browse files

Merge branch 'ci' into 'master'

Ci

See merge request west-devel/West!4
parents f1f9458f 7d41115a
variables:
GIT_STRATEGY: none
stages:
- build
- test
west_build:
tags: [rcc,docker,node-01]
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 > /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_test_gamma:
tags: [rcc,docker,node-01]
stage: test
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 > /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
- ./configure FFLAGS="-ffpe-summary=none" > /dev/null
- make -j pw > /dev/null
- git clone -b $CI_COMMIT_REF_NAME $CI_REPOSITORY_URL West
- cd West
- make > /dev/null
- cd test
- make NP=28 NI=1 NT=1
# Makefile
#
default: title all
all: \
test001_all
run: \
test001_run
clean: \
test001_clean
test001_all:
if test -d test001 ; then \
( cd test001 ; if test "$(MAKE)" = "" ; then make $(MFLAGS) all; \
else $(MAKE) $(MFLAGS) all ; fi ) ; fi
test001_run:
if test -d test001 ; then \
( cd test001 ; if test "$(MAKE)" = "" ; then make $(MFLAGS) run; \
else $(MAKE) $(MFLAGS) run ; fi ) ; fi
test001_clean:
if test -d test001 ; then \
( cd test001 ; if test "$(MAKE)" = "" ; then make clean ; \
else $(MAKE) clean ; fi ) ; fi
title :
@echo " "
@echo "#############"
@echo "## Testing ##"
@echo "#############"
@echo " "
NP = 2
NI = 1
NT = 1
NIMAGE = ${NI}
OMP_NUM_THREADS = ${NT}
PARA_PREFIX = mpirun -np ${NP} --allow-run-as-root
WGET = wget
BINDIR = ../../../bin
# Makefile
include ../maketest.inc
default: title all
all: prepare_input run
prepare_input:
-wget -N -q http://www.quantum-simulation.org/potentials/sg15_oncv/upf/H_ONCV_PBE-1.0.upf
-wget -N -q http://www.quantum-simulation.org/potentials/sg15_oncv/upf/Si_ONCV_PBE-1.1.upf
-wget -N -q http://www.west-code.org/doc/training/silane/pw.in
-wget -N -q http://www.west-code.org/doc/training/silane/wstat.in
-wget -N -q http://www.west-code.org/doc/training/silane/wfreq.in
run:
- ${PARA_PREFIX} ${BINDIR}/pw.x -i pw.in > pw.out
- tail -5 pw.out
- ${PARA_PREFIX} ${BINDIR}/wstat.x -nimage ${NIMAGE} -i wstat.in > wstat.out
- tail -5 wstat.out
- ${PARA_PREFIX} ${BINDIR}/wfreq.x -nimage ${NIMAGE} -i wfreq.in > wfreq.out
- tail -5 wfreq.out
clean:
- /bin/rm -rf *out *in *upf *save >& /dev/null
title:
@echo " "
@echo "###############"
@echo "### test001 ###"
@echo "###############"
@echo " "
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment