diff --git a/.drone.jsonnet b/.drone.jsonnet index 2a2774c..72882cb 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -72,8 +72,18 @@ local mac_builder(name, environment: { SSH_KEY: { from_secret: 'SSH_KEY' } }, commands: [ 'echo "Building on ${DRONE_STAGE_MACHINE}"', - 'python3 -mpip install . -v', - 'python3 -mpytest -v --color=yes', + 'mkdir prefix', + 'git clone https://github.com/oxen-io/oxen-mq.git', + 'cd oxen-mq', + 'git submodule update --init --recursive --depth=1', + 'mkdir build && cd build', + 'cmake .. -DOXENMQ_BUILD_TESTS=OFF -DCMAKE_INSTALL_PREFIX=../../prefix -G Ninja', + 'ninja install -j' + jobs, + 'cd ../..', + 'LDFLAGS="-L$$PWD/prefix/lib -L/opt/local/lib" ' + + 'CFLAGS="-Wextra -Werror -fcolor-diagnostics -I$$PWD/prefix/include -I/opt/local/include" ' + + 'python3 -mpip install . -v --prefix=./prefix', + 'DYLD_LIBRARY_PATH=$$PWD/prefix/lib PYTHONPATH=$$(ls -1d $$PWD/prefix/lib/python3*/site-packages) python3 -mpytest -v --color=yes', ] + extra_cmds, }, ],