radare2/.builds/openbsd.yml

39 lines
1.2 KiB
YAML

image: openbsd/latest
packages:
- devel/meson
- devel/pkgconf
- devel/gmake
- devel/llvm
- lang/python
environment:
CXX: clang++
CC: clang
sources:
- https://github.com/radareorg/radare2
- https://github.com/radareorg/radare2-testbins
tasks:
- build: |
cd radare2
./configure --prefix=${HOME}
gmake
- install: |
cd radare2
export PATH=${HOME}/bin:${PATH}
export LD_LIBRARY_PATH=${HOME}/lib:${HOME}/lib64:${LD_LIBRARY_PATH}
export PKG_CONFIG_PATH=${HOME}/lib/pkgconfig:${PKG_CONFIG_PATH}
gmake install
- test: |
cd radare2
export PATH=${HOME}/bin:${PATH}
export LD_LIBRARY_PATH=${HOME}/lib:${HOME}/lib64:${LD_LIBRARY_PATH}
export PKG_CONFIG_PATH=${HOME}/lib/pkgconfig:${PKG_CONFIG_PATH}
# OpenBSD does not have a "python" command by default
# but a test needs it.
ln -s /usr/local/bin/python3 ${HOME}/bin/python
# Workaround until the feature request is solved
# https://todo.sr.ht/~sircmpwn/builds.sr.ht/274
ln -s ${HOME}/radare2-testbins test/bins
# Running the test suite
cd test && gmake -k all