Moved travis tests to their own script
This commit is contained in:
parent
1ff907ae80
commit
5d81f59e3a
|
@ -24,6 +24,4 @@ before_script:
|
|||
- bash $TRAVIS_BUILD_DIR/utils/travis/bootstrap-zm.sh
|
||||
script:
|
||||
- bash $TRAVIS_BUILD_DIR/utils/travis/build-zm.sh
|
||||
- mysql -uzmuser -pzmpass zm < db/test.monitor.sql
|
||||
- sudo zmpkg.pl start
|
||||
- sudo zmfilter.pl -f purgewhenfull
|
||||
- bash $TRAVIS_BUILD_DIR/utils/travis/run-tests.sh
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
set -o pipefail
|
||||
|
||||
with_timestamps() {
|
||||
while read -r line; do
|
||||
echo -e "$(date +%T)\t$line";
|
||||
done
|
||||
}
|
||||
|
||||
run_tests() {
|
||||
mysql -uzmuser -pzmpass zm < db/test.monitor.sql
|
||||
sudo zmpkg.pl start
|
||||
sudo zmfilter.pl -f purgewhenfull
|
||||
}
|
||||
|
||||
run_tests | with_timestamps
|
Loading…
Reference in New Issue