Update Travis-CI settings

- Skip FML tests - they seem to be very unreliable
- Exclude AQI, NuWeather when running tests on pull requests
- Move SYSDNS_HOST_COMMAND into 'script' to clean up env settings
This commit is contained in:
James Lu 2019-06-23 12:53:44 -07:00
parent bfb1fc87f6
commit c335015ba6

View File

@ -19,20 +19,20 @@ install:
# Some plugins use external APIs, and can cause tests to fail due to them being slow/down. # Some plugins use external APIs, and can cause tests to fail due to them being slow/down.
# --no-network disables these, and we can still allow tests that have network access to fail. # --no-network disables these, and we can still allow tests that have network access to fail.
env: env:
- SYSDNS_HOST_COMMAND="/usr/bin/unbound-host" TEST_ARGS="--no-network" - TEST_ARGS="--no-network"
- SYSDNS_HOST_COMMAND="/usr/bin/unbound-host" TEST_ARGS="" - TEST_ARGS=""
script: script:
- 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then echo "Skipping tests that require secret API keys (Weather, LastFM)"; export SKIP_PLUGINS="--exclude=./LastFM"; fi' - 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then echo "Skipping tests that require secret API keys"; export SKIP_PLUGINS=("--exclude=./LastFM" "--exclude=./NuWeather" "--exclude=./AQI"); fi'
# Don't test Weather, it hits my API limits too quickly - export SYSDNS_HOST_COMMAND="/usr/bin/unbound-host"
- supybot-test -c --plugins-dir=. $TEST_ARGS $SKIP_PLUGINS --exclude=./Weather - supybot-test -c --plugins-dir=. $TEST_ARGS ${SKIP_PLUGINS[@]} --exclude=./Weather --exclude=./FML
notifications: notifications:
email: false email: false
matrix: matrix:
allow_failures: allow_failures:
- env: SYSDNS_HOST_COMMAND="/usr/bin/unbound-host" TEST_ARGS="" - env: TEST_ARGS=""
branches: branches:
except: except: