Skip to content

Commit bac5ad6

Browse files
committed
.travis.yml: Add unittest runs to Travis jobs
Add the missing pieces to better Travis jobs (unittest runs). Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
1 parent 3a8d7e4 commit bac5ad6

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

.travis.yml

+5
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ sudo: false
77
install:
88
- pip install Sphinx
99
- pip install -r requirements-travis.txt
10+
- git clone https://github.com/avocado-framework/avocado.git avocado-libs
11+
- cd avocado-libs
12+
- python setup.py install
13+
- cd ..
14+
- rm -rf avocado-libs
1015

1116
script:
1217
- make check

selftests/checkall

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
#!/bin/bash
2+
GR=0
23
run_rc() {
34
echo "Running '$1'"
45
$1
6+
if [ $? != 0 ]; then
7+
GR=1
8+
fi
9+
echo ""
510
}
611
run_rc 'inspekt lint'
7-
rc1=$?
8-
echo ""
912
run_rc 'inspekt indent'
10-
rc2=$?
11-
echo ""
1213
run_rc 'inspekt style'
13-
rc3=$?
14-
exit $rc1 || $rc2 || $rc3
14+
run_rc 'selftests/run'
15+
exit ${GR}
1516

0 commit comments

Comments
 (0)