From d692391b6b644dec09f468fc082552b382a02044 Mon Sep 17 00:00:00 2001 From: Anthony Scemama Date: Wed, 13 Apr 2022 23:58:55 +0200 Subject: [PATCH] Drone CI file --- .drone.yml | 38 +++++++++++++++++++++++++++++--------- drone/drone_docker.yml | 2 +- 2 files changed, 30 insertions(+), 10 deletions(-) diff --git a/.drone.yml b/.drone.yml index 0cbeb613..4d20225b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,30 +1,50 @@ --- kind: pipeline -type: ssh +type: docker name: default clone: depth: 10 steps: +- name: setup + image: ubuntu + commands: + - 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 \ + python3 + - ln -s /usr/bin/python3 /usr/bin/python + + - name: configure - pull: never - image: ubuntu/qp2_env + image: ubuntu 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 + image: ubuntu commands: - - ninja + - source quantum_package.rc ; ninja - name: testing - pull: never - image: ubuntu/qp2_env + image: ubuntu commands: - - qp test + - source quantum_package.rc ; qp test -a diff --git a/drone/drone_docker.yml b/drone/drone_docker.yml index 0cbeb613..d1eb7175 100644 --- a/drone/drone_docker.yml +++ b/drone/drone_docker.yml @@ -1,6 +1,6 @@ --- kind: pipeline -type: ssh +type: docker name: default clone: