56 lines
2.1 KiB
YAML
56 lines
2.1 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/rizinorg/rizin
|
|
- https://github.com/rizinorg/rizin-testbins
|
|
hottub_trigger: '^(dev|stable|bsd-.+|dist-.+)$'
|
|
tasks:
|
|
- rzpipe: |
|
|
/usr/local/bin/python3 -m venv .venv
|
|
source .venv/bin/activate
|
|
python3 -m pip install 'git+https://github.com/rizinorg/rz-pipe#egg=rzpipe&subdirectory=python'
|
|
- build: |
|
|
cd rizin
|
|
meson setup --prefix=${HOME} build
|
|
ninja -C build
|
|
- install: |
|
|
cd rizin
|
|
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}
|
|
ninja -C build install
|
|
- unittest: |
|
|
cd rizin
|
|
export PATH=${HOME}/bin:/usr/local/bin:${PATH}
|
|
export LD_LIBRARY_PATH=${HOME}/lib:${HOME}/lib64:${LD_LIBRARY_PATH}
|
|
export PKG_CONFIG_PATH=${HOME}/lib/pkgconfig:${PKG_CONFIG_PATH}
|
|
# Workaround until the feature request is solved
|
|
# https://todo.sr.ht/~sircmpwn/builds.sr.ht/274
|
|
ln -s ${HOME}/rizin-testbins test/bins
|
|
# Running the unit tests
|
|
MALLOC_OPTIONS=CFGU ninja -C build test
|
|
- test: |
|
|
cd rizin
|
|
export PATH=${HOME}/bin:/usr/local/bin:${PATH}
|
|
export LD_LIBRARY_PATH=${HOME}/lib:${HOME}/lib64:${LD_LIBRARY_PATH}
|
|
export PKG_CONFIG_PATH=${HOME}/lib/pkgconfig:${PKG_CONFIG_PATH}
|
|
source ../.venv/bin/activate
|
|
python3 -m pip install requests
|
|
# Workaround until the feature request is solved
|
|
# https://todo.sr.ht/~sircmpwn/builds.sr.ht/274
|
|
ln -s ${HOME}/rizin-testbins test/bins
|
|
cd test
|
|
# Running the unit tests
|
|
doas env PATH="${HOME}/bin:${PATH}" \
|
|
LD_LIBRARY_PATH="${HOME}/lib:${HOME}/lib64:${LD_LIBRARY_PATH}" \
|
|
PKG_CONFIG_PATH="${HOME}/lib/pkgconfig:${PKG_CONFIG_PATH}" \
|
|
MALLOC_OPTIONS=CFGU \
|
|
rz-test -t 1200 -L -o results.json
|