image: netbsd/latest packages: - meson - pkgconf - gmake - clang - python310 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: | python3.10 -m ensurepip --user python3.10 -m pip install --user 'git+https://github.com/rizinorg/rz-pipe#egg=rzpipe&subdirectory=python' - build: | cd rizin # Workaround to avoid test/unit/test_file.c fail due to the insufficient memory sed -i "/'file',/d" test/unit/meson.build # Workaround to avoid running rz-pipe test since there is no python3 symlink but a python3.8 binary available. rm -f test/db/cmd/cmd_pipe rm -f test/db/archos/not-windows-any/cmd_pipe 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=S ninja -C build test - test: | python3.10 -m pip install --user requests 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 cd test # Workaround to avoid running HTTP POST test rm -f db/cmd/cmd_http_post # Running rz-test ln -s `which python3.10` ${HOME}/bin/python3 MALLOC_OPTIONS=S rz-test -L -o results.json