This commit is contained in:
parent
4436b954d0
commit
b73d489655
110
.drone.yml
Normal file
110
.drone.yml
Normal file
@ -0,0 +1,110 @@
|
|||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: configuration
|
||||||
|
|
||||||
|
clone:
|
||||||
|
depth: 10
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: master
|
||||||
|
image: scemama666/qp2_env
|
||||||
|
commands:
|
||||||
|
- git clone git@github.com:QuantumPackage/qp2.git --depth=10 --branch=master
|
||||||
|
- bash -c "cd qp2 ; exec ./configure -i all"
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: master
|
||||||
|
|
||||||
|
clone:
|
||||||
|
depth: 10
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: git pull master
|
||||||
|
image: scemama666/qp2_configured
|
||||||
|
commands:
|
||||||
|
- bash -c "cd /qp2 ; git checkout master"
|
||||||
|
- bash -c "cd /qp2 ; git pull"
|
||||||
|
|
||||||
|
- name: configure debug
|
||||||
|
image: scemama666/qp2_configured
|
||||||
|
commands:
|
||||||
|
- bash -c "cd /qp2 ; exec ./configure -c ./config/gfortran_debug.cfg"
|
||||||
|
- bash -c "source /qp2/quantum_package.rc ; exec qp_plugins download https://gitlab.com/scemama/qp_plugins_scemama"
|
||||||
|
- bash -c "source /qp2/quantum_package.rc ; exec qp_plugins install champ"
|
||||||
|
|
||||||
|
- name: compile debug
|
||||||
|
image: scemama666/qp2_configured
|
||||||
|
commands:
|
||||||
|
- bash -c "cd /qp2 ; source quantum_package.rc ; exec ninja"
|
||||||
|
|
||||||
|
- name: testing debug
|
||||||
|
image: scemama666/qp2_configured
|
||||||
|
commands:
|
||||||
|
- bash -c "cd /qp2 ; source quantum_package.rc ; TRAVIS=1 exec qp_test -a"
|
||||||
|
|
||||||
|
|
||||||
|
- name: configure fast
|
||||||
|
image: scemama666/qp2_configured
|
||||||
|
commands:
|
||||||
|
- bash -c "cd /qp2 ; exec ./configure -c ./config/gfortran_avx.cfg"
|
||||||
|
|
||||||
|
- name: compile fast
|
||||||
|
image: scemama666/qp2_configured
|
||||||
|
commands:
|
||||||
|
- bash -c "cd /qp2 ; source quantum_package.rc ; exec ninja"
|
||||||
|
|
||||||
|
- name: testing
|
||||||
|
image: scemama666/qp2_configured
|
||||||
|
commands:
|
||||||
|
- bash -c "cd /qp2 ; source quantum_package.rc ; TRAVIS=1 exec qp_test -a"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: dev
|
||||||
|
|
||||||
|
clone:
|
||||||
|
depth: 10
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: git pull master
|
||||||
|
image: scemama666/qp2_configured
|
||||||
|
commands:
|
||||||
|
- bash -c "cd /qp2 ; git checkout dev"
|
||||||
|
- bash -c "cd /qp2 ; git pull"
|
||||||
|
|
||||||
|
- name: configure debug
|
||||||
|
image: scemama666/qp2_configured
|
||||||
|
commands:
|
||||||
|
- bash -c "cd /qp2 ; exec ./configure -c ./config/gfortran_debug.cfg"
|
||||||
|
- bash -c "source /qp2/quantum_package.rc ; exec qp_plugins download https://gitlab.com/scemama/qp_plugins_scemama"
|
||||||
|
- bash -c "source /qp2/quantum_package.rc ; exec qp_plugins install champ"
|
||||||
|
|
||||||
|
- name: compile debug
|
||||||
|
image: scemama666/qp2_configured
|
||||||
|
commands:
|
||||||
|
- bash -c "cd /qp2 ; source quantum_package.rc ; exec ninja"
|
||||||
|
|
||||||
|
- name: testing debug
|
||||||
|
image: scemama666/qp2_configured
|
||||||
|
commands:
|
||||||
|
- bash -c "cd /qp2 ; source quantum_package.rc ; TRAVIS=1 exec qp_test -a"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# - name: notify
|
||||||
|
# image: drillster/drone-email
|
||||||
|
# settings:
|
||||||
|
# host:
|
||||||
|
# from_secret: hostname # irsamc.ups-tlse.fr
|
||||||
|
# from:
|
||||||
|
# from_secret: from # drone@irssv7.ups-tlse.fr
|
||||||
|
# recipients:
|
||||||
|
# from_secret: recipients # scemama@irsamc.ups-tlse.fr
|
||||||
|
# when:
|
||||||
|
# status: [changed, failure]
|
8
Docker/README.md
Normal file
8
Docker/README.md
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
Docker files to build the containers used with DroneCI.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
```
|
||||||
|
docker build -t ubuntu/qp2_env .
|
||||||
|
|
||||||
|
```
|
||||||
|
|
27
Docker/Ubuntu/Dockerfile
Normal file
27
Docker/Ubuntu/Dockerfile
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
ARG UBUNTU_VERSION=20.04
|
||||||
|
FROM ubuntu:${UBUNTU_VERSION} AS builder
|
||||||
|
|
||||||
|
# Timezone for tzdata
|
||||||
|
ARG tz=Etc/UTC
|
||||||
|
RUN echo $tz > /etc/timezone && rm -rf /etc/localtime
|
||||||
|
|
||||||
|
# Install
|
||||||
|
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
||||||
|
git \
|
||||||
|
curl \
|
||||||
|
wget \
|
||||||
|
python3 \
|
||||||
|
gfortran \
|
||||||
|
gcc \
|
||||||
|
g++ \
|
||||||
|
make \
|
||||||
|
build-essential \
|
||||||
|
rsync \
|
||||||
|
unzip \
|
||||||
|
libopenblas-dev \
|
||||||
|
pkg-config \
|
||||||
|
m4
|
||||||
|
|
||||||
|
RUN ln -s /usr/bin/python3 /usr/bin/python
|
||||||
|
|
||||||
|
|
14
Docker/Ubuntu_configured/Dockerfile
Normal file
14
Docker/Ubuntu_configured/Dockerfile
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
FROM scemama666/qp2_env AS builder
|
||||||
|
|
||||||
|
# Timezone for tzdata
|
||||||
|
ARG tz=Etc/UTC
|
||||||
|
RUN echo $tz > /etc/timezone && rm -rf /etc/localtime
|
||||||
|
|
||||||
|
# Install
|
||||||
|
RUN git clone --depth 10 https://github.com/QuantumPackage/qp2
|
||||||
|
RUN pwd
|
||||||
|
WORKDIR /qp2
|
||||||
|
|
||||||
|
RUN ./configure -i all
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user