travis: CloudFlare does not allow T_ANY requests, so live tests that use it fail. Disable.

pull/328/head
Brad House 5 years ago
parent 77ca6cc493
commit c498c5320f
  1. 2
      .travis.yml
  2. 5
      travis/test.sh

@ -96,7 +96,7 @@ before_script:
if [ "$BUILD_TYPE" = "valgrind" ]; then
export TEST_WRAP='valgrind --leak-check=full'
# Skip container tests as valgrind doesn't cope with clone()
export TEST_FILTER="--gtest_filter=-*Container*"
export TEST_FILTER="--gtest_filter=-*Container*:-*LiveSearchANY*"
fi
- |
if [ "$BUILD_TYPE" = "ios" ]; then

@ -1,5 +1,10 @@
#!/bin/sh
set -e
# Travis on MacOS uses CloudFlare's DNS (1.1.1.1/1.0.0.1) which rejects ANY requests
# Note res_ninit() and /etc/resolv.conf actually have different configs, bad Travis
[ -z "$TEST_FILTER" ] && export TEST_FILTER="--gtest_filter=-*LiveSearchANY*"
if [ "$BUILD_TYPE" != "ios" -a "$BUILD_TYPE" != "analyse" -a "$BUILD_TYPE" != "cmake" -a "$BUILD_TYPE" != "valgrind" ]; then
$TEST_WRAP ./adig www.google.com
$TEST_WRAP ./acountry www.google.com

Loading…
Cancel
Save