mirror of
https://github.com/QuantumPackage/qp2.git
synced 2024-10-30 10:18:07 +01:00
Merge branch 'master' into dev
This commit is contained in:
commit
662757e79f
30
.drone.yml
Normal file
30
.drone.yml
Normal file
@ -0,0 +1,30 @@
|
||||
---
|
||||
kind: pipeline
|
||||
type: ssh
|
||||
name: default
|
||||
|
||||
clone:
|
||||
depth: 10
|
||||
|
||||
steps:
|
||||
- name: configure
|
||||
pull: never
|
||||
image: ubuntu/qp2_env
|
||||
commands:
|
||||
- ./configure -i all -c ./config/gfortran_debug.cfg
|
||||
- source quantum_package.rc ; qp plugins download https://gitlab.com/scemama/qp_plugins_scemama
|
||||
- source quantum_package.rc ; qp plugins install champ
|
||||
|
||||
- name: compile
|
||||
pull: never
|
||||
image: ubuntu/qp2_env
|
||||
commands:
|
||||
- ninja
|
||||
|
||||
- name: testing
|
||||
pull: never
|
||||
image: ubuntu/qp2_env
|
||||
commands:
|
||||
- qp test
|
||||
|
||||
|
8
drone/Docker/README.md
Normal file
8
drone/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
drone/Docker/Ubuntu/Dockerfile
Normal file
27
drone/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
|
||||
|
||||
|
30
drone/drone_docker.yml
Normal file
30
drone/drone_docker.yml
Normal file
@ -0,0 +1,30 @@
|
||||
---
|
||||
kind: pipeline
|
||||
type: ssh
|
||||
name: default
|
||||
|
||||
clone:
|
||||
depth: 10
|
||||
|
||||
steps:
|
||||
- name: configure
|
||||
pull: never
|
||||
image: ubuntu/qp2_env
|
||||
commands:
|
||||
- ./configure -i all -c ./config/gfortran_debug.cfg
|
||||
- source quantum_package.rc ; qp plugins download https://gitlab.com/scemama/qp_plugins_scemama
|
||||
- source quantum_package.rc ; qp plugins install champ
|
||||
|
||||
- name: compile
|
||||
pull: never
|
||||
image: ubuntu/qp2_env
|
||||
commands:
|
||||
- ninja
|
||||
|
||||
- name: testing
|
||||
pull: never
|
||||
image: ubuntu/qp2_env
|
||||
commands:
|
||||
- qp test
|
||||
|
||||
|
29
drone/drone_ssh.yml
Normal file
29
drone/drone_ssh.yml
Normal file
@ -0,0 +1,29 @@
|
||||
kind: pipeline
|
||||
type: ssh
|
||||
name: default
|
||||
|
||||
clone:
|
||||
depth: 10
|
||||
|
||||
server:
|
||||
host: 130.120.229.139
|
||||
user: test
|
||||
password:
|
||||
from_secret: ssh_pass
|
||||
|
||||
steps:
|
||||
- name: configure
|
||||
commands:
|
||||
- ./configure -i all -c ./config/gfortran_debug.cfg
|
||||
- source quantum_package.rc ; qp plugins download https://gitlab.com/scemama/qp_plugins_scemama
|
||||
- source quantum_package.rc ; qp plugins install champ
|
||||
|
||||
- name: compile
|
||||
commands:
|
||||
- ninja
|
||||
|
||||
- name: testing
|
||||
commands:
|
||||
- qp test
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user