lasp/.drone.yml

81 lines
1.7 KiB
YAML
Raw Normal View History

kind: pipeline
type: docker
2023-01-12 11:02:05 +00:00
name: archlinux_build
clone:
2023-01-12 13:11:12 +00:00
depth: 50
steps:
2023-01-12 11:31:12 +00:00
- name: build-arch
image: archlinux_build
pull: if-not-exists
2023-01-12 11:31:12 +00:00
volumes:
- name: archlinux_ccache
path: /root/.ccache
commands:
- git submodule update --init --recursive
2023-01-12 13:13:20 +00:00
- pacman -S --noconfirm ccache openblas fftw pulseaudio pybind11
- cmake .
# More than two makes ascee2 irresponsive for now
- make -j2
2023-01-12 13:23:16 +00:00
2023-01-12 11:31:12 +00:00
- name: test-arch
image: archlinux_build
pull: if-not-exists
commands:
2023-01-12 13:23:16 +00:00
- pacman -S --noconfirm openblas python-pytest fftw pulseaudio python-pip python-scipy
2023-01-12 11:31:12 +00:00
- pip install -r requirements.txt
- pip install .
- pytest
2023-01-12 13:23:16 +00:00
# - name: release-arch
# commands:
# -
2023-01-12 11:31:12 +00:00
volumes:
- name: archlinux_ccache
host:
path: /tmp/archlinux_ccache
---
kind: pipeline
type: docker
name: ubuntu_build
2023-01-12 11:31:12 +00:00
clone:
depth: 3
volumes:
- name: archlinux_ccache
path: /root/.ccache
2023-01-12 11:31:12 +00:00
steps:
- name: build-ubuntu
image: ubuntu
pull: if-not-exists
volumes:
- name: ubuntu_ccache
path: /root/.ccache
2023-01-12 11:31:12 +00:00
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