From 54b2fcc5e9f585104d3ab7ba6eec3da77cb91075 Mon Sep 17 00:00:00 2001 From: "J.A. de Jong - Redu-Sone B.V., ASCEE V.O.F" Date: Thu, 12 Jan 2023 14:39:17 +0100 Subject: [PATCH] Possible candidate for ubuntu build and arch build --- .drone.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.drone.yml b/.drone.yml index 524e282..5540b61 100644 --- a/.drone.yml +++ b/.drone.yml @@ -45,9 +45,36 @@ name: ubuntu_build clone: depth: 3 +volumes: +- name: archlinux_ccache + path: /root/.ccache + steps: - name: build-ubuntu image: ubuntu pull: if-not-exists + volumes: + - name: ubuntu_ccache + path: /root/.ccache commands: + - apt update + - apt install -y git python3-pybind11 libopenblas-dev python3-pip python3-scipy libusb-1.0-0-dev libpulse-dev python3-h5py fftw-dev - git submodule update --init --recursive + - cmake . + # More than two makes ascee2 irresponsive for now + - make -j2 + + - name: test-ubuntu + image: ubuntu_build + pull: if-not-exists + commands: + - apt update + - apt install -y python3-pytest fftw pulseaudio python3-pip python3-scipy + - pip install -r requirements.txt + - pip install . + - pytest-3 + +volumes: + - name: ubuntu_ccache + host: + path: /tmp/ubuntu_ccache