mirror of
https://github.com/QuantumPackage/qp2.git
synced 2024-10-13 03:11:31 +02:00
Added drone CI config
This commit is contained in:
parent
512318a9ec
commit
82409d3e73
36
.drone.yml
Normal file
36
.drone.yml
Normal file
@ -0,0 +1,36 @@
|
||||
---
|
||||
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
|
||||
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user