-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_ci.sh
More file actions
executable file
·37 lines (29 loc) · 818 Bytes
/
run_ci.sh
File metadata and controls
executable file
·37 lines (29 loc) · 818 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
check_ret() {
if [ $1 -ne 0 ]; then
echo ""
echo "!!! FAIL: $3"
echo "********************************************************************************"
echo ""
exit $1
else
echo ""
echo "*** SUCCESS: $2"
echo "********************************************************************************"
echo ""
fi
}
./build_simple.sh
check_ret $? "build wsjcpp-jsonrpc20"
./wsjcpp-jsonrpc20
check_ret $? "run wsjcpp-jsonrpc20"
cd unit-tests.wsjcpp
check_ret $? "change directory to unit-tests.wsjcpp"
./build_simple.sh
check_ret $? "build unit-tests"
./unit-tests
check_ret $? "run unit-tests"
cd ../tests-client-py3
check_ret $? "change directory to ../tests-client-py3"
python3 run_tests.py
check_ret $? "run python tests"