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
|
- bash $TRAVIS_BUILD_DIR/utils/travis/bootstrap-zm.sh
|
||||||
script:
|
script:
|
||||||
- bash $TRAVIS_BUILD_DIR/utils/travis/build-zm.sh
|
- bash $TRAVIS_BUILD_DIR/utils/travis/build-zm.sh
|
||||||
- mysql -uzmuser -pzmpass zm < db/test.monitor.sql
|
- bash $TRAVIS_BUILD_DIR/utils/travis/run-tests.sh
|
||||||
- sudo zmpkg.pl start
|
|
||||||
- sudo zmfilter.pl -f purgewhenfull
|
|
||||||
|
|
|
@ -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