forked from timvideos/gst-switch
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
48 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#! /bin/bash -ex | ||
# | ||
# This script runs after everything has finished. It should be used to upload | ||
# any build assets, logs and coverage information. | ||
|
||
case $TEST in | ||
system ) | ||
COVERALL_ARGS="-n -r $HOME/gst-switch-coverage" | ||
;; | ||
esac | ||
|
||
coveralls $COVERALL_ARGS || { | ||
printf "Coveralls failed!\n" | ||
exit -1 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,67 +1,16 @@ | ||
#! /bin/bash -ex | ||
|
||
./autogen.sh --prefix=/usr || { | ||
printf "Failed to do autogen!!!\n" | ||
exit -1 | ||
} | ||
make clean | ||
make || { | ||
printf "make of gst-switch failed!!!\n" | ||
exit -1 | ||
} | ||
sudo make install || { | ||
printf "make install of gst-switch failed!!!\n" | ||
exit -1 | ||
} | ||
|
||
cd python-api | ||
|
||
case $TEST in | ||
|
||
python-api ) | ||
case $TYPE in | ||
unittest ) | ||
make unittests || { | ||
printf "Unittests failed!\n" | ||
exit -1 | ||
} | ||
coveralls || { | ||
printf "Coveralls failed!\n" | ||
exit -1 | ||
} | ||
;; | ||
integration ) | ||
make integration || { | ||
printf "Integration tests failed!\n" | ||
exit -1 | ||
} | ||
coveralls || { | ||
printf "Coveralls failed!\n" | ||
exit -1 | ||
} | ||
;; | ||
esac | ||
cd python-api | ||
make $TYPE | ||
;; | ||
system ) | ||
make check | ||
make test | ||
;; | ||
* ) | ||
echo "Unknown TEST='$TEST'" | ||
exit -1 | ||
;; | ||
module ) | ||
case $TYPE in | ||
python ) | ||
make test || { | ||
printf "Tests failed!\n" | ||
exit -1 | ||
} | ||
coveralls || { | ||
printf "Coveralls failed!\n" | ||
exit -1 | ||
} | ||
;; | ||
c ) | ||
make test || { | ||
printf "Tests failed!\n" | ||
exit -1 | ||
} | ||
coveralls -n -r ../tools | ||
esac | ||
esac || { | ||
printf "Failed!\n!\n" | ||
exit -1 | ||
} | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.