Skip to content

Commit 0d3dc8c

Browse files
committed
Updated .travis.yml
1 parent 11fe0cc commit 0d3dc8c

File tree

2 files changed

+29
-7
lines changed

2 files changed

+29
-7
lines changed

.travis.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,4 @@ addons:
1616

1717
# Build steps
1818
script:
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

ci/travis/run.sh

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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"

0 commit comments

Comments
 (0)