File tree Expand file tree Collapse file tree 2 files changed +29
-7
lines changed Expand file tree Collapse file tree 2 files changed +29
-7
lines changed Original file line number Diff line number Diff line change @@ -16,10 +16,4 @@ addons:
1616
1717# Build steps
1818script :
19- - mkdir -p tmp
20- - cd tmp
21- - cmake ..
22- - make
23- - cd ../unit-tests.wsjcpp
24- - ./build_simple.sh
25- - ./run_unit-tests.sh
19+ - ./ci/travis/run.sh
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ check_ret () {
4+ if [ $1 -ne 0 ]; then
5+ echo " "
6+ echo " !!! FAIL: $2 "
7+ echo " ********************************************************************************"
8+ echo " "
9+ exit $1
10+ else
11+ echo " "
12+ echo " *** SUCCESS: $2 "
13+ echo " ********************************************************************************"
14+ echo " "
15+ fi
16+ }
17+
18+ rm -rf tmp
19+ ./build_simple.sh
20+ check_ret $? " build"
21+
22+ cd ./unit-tests.wsjcpp
23+ rm -rf tmp
24+ check_ret $? " cd tests"
25+ ./build_simple.sh
26+ check_ret $? " build tests"
27+ ./run_unit-tests.sh
28+ check_ret $? " run unit-tests"
You can’t perform that action at this time.
0 commit comments