52 lines
1.8 KiB
YAML
52 lines
1.8 KiB
YAML
image: freebsd/latest
|
|
packages:
|
|
- devel/meson
|
|
- devel/pkgconf
|
|
- devel/gmake
|
|
- devel/llvm
|
|
- ftp/wget
|
|
- lang/python
|
|
environment:
|
|
CXX: clang++
|
|
CC: clang
|
|
HOST_CC: clang
|
|
sources:
|
|
- https://github.com/rizinorg/rizin
|
|
- https://github.com/rizinorg/rizin-testbins
|
|
hottub_trigger: '^(dev|stable|bsd-.+|dist-.+)$'
|
|
tasks:
|
|
- rzpipe: |
|
|
sudo python3 -m ensurepip
|
|
sudo 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:${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
|
|
ninja -C build test
|
|
- test: |
|
|
python3 -m pip install --user requests
|
|
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}
|
|
# 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 test suite
|
|
cd test
|
|
rz-test -L -o results.json
|