mirror of https://github.com/c-ares/c-ares.git
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.
27 lines
744 B
27 lines
744 B
4 years ago
|
#!/bin/sh
|
||
|
set -e
|
||
|
|
||
|
if [ "$BUILD_TYPE" = "normal" -a "$TRAVIS_OS_NAME" = "linux" ]; then
|
||
4 years ago
|
# Make distribution tarball
|
||
4 years ago
|
./maketgz 99.98.97
|
||
4 years ago
|
# Extract distribution tarball for building
|
||
4 years ago
|
tar xvf c-ares-99.98.97.tar.gz
|
||
|
cd c-ares-99.98.97
|
||
4 years ago
|
# Build autotools
|
||
|
mkdir build-autotools
|
||
|
cd build-autotools
|
||
|
../configure --disable-symbol-hiding --enable-expose-statics --enable-maintainer-mode --enable-debug
|
||
4 years ago
|
make
|
||
|
cd test
|
||
|
$TEST_WRAP ./arestest -4 -v $TEST_FILTER
|
||
4 years ago
|
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 ../..
|
||
4 years ago
|
fi
|