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