- add primitive CI script

This commit is contained in:
Dmytro Bogovych
2022-10-16 17:08:57 +03:00
parent 691501c405
commit 95f50d5b43
4 changed files with 24 additions and 81 deletions

23
run_ci.sh Executable file
View File

@@ -0,0 +1,23 @@
#!/bin/bash
SEND_MSG="/var/ci/conformance_ci/send_telegram_message.py"
mkdir -p build
cd build
# Configure
cmake ../src
if [ $? -ne 0 ]; then
/usr/bin/python3 $SEND_MSG "rtphone cmake failed. $BUILD_URL"
exit 1
fi
# Build
make -j2
if [ $? -ne 0 ]; then
/usr/bin/python3 $SEND_MSG "rtphone build failed. $BUILD_URL"
exit 1
fi
/usr/bin/python3 $SEND_MSG "rtphone builds ok. $BUILD_URL"