A C library for asynchronous DNS requests (grpc依赖)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
858 B

#!/bin/sh
set -e
OS=""
if [ "$TRAVIS_OS_NAME" != "" ]; then
OS="$TRAVIS_OS_NAME"
elif [ "$CIRRUS_OS" != "" ]; then
OS="$CIRRUS_OS"
fi
if [ "$BUILD_TYPE" = "normal" -a "$OS" = "linux" ]; then
# Make distribution tarball
./maketgz 99.98.97
# Extract distribution tarball for building
tar xvf c-ares-99.98.97.tar.gz
cd c-ares-99.98.97
# Build autotools
mkdir build-autotools
cd build-autotools
../configure --disable-symbol-hiding --enable-expose-statics --enable-maintainer-mode --enable-debug
make
cd test
$TEST_WRAP ./arestest -4 -v $TEST_FILTER
cd ../..
# Build CMake
mkdir build-cmake
cd build-cmake
cmake -DCMAKE_BUILD_TYPE=DEBUG -DCARES_STATIC=ON -DCARES_STATIC_PIC=ON -DCARES_BUILD_TESTS=ON ..
make
cd bin
$TEST_WRAP ./arestest -4 -v $TEST_FILTER
cd ../..
fi