Have travis do shared and static builds

This commit is contained in:
Don 2018-03-21 10:55:55 -07:00
parent 26bebfc564
commit a1c22d93cd

View File

@ -12,20 +12,32 @@ if [ "x$ARCH" = "xnative" ]; then
make dist make dist
tar zxvf libressl-*.tar.gz tar zxvf libressl-*.tar.gz
cd libressl-* cd libressl-*
mkdir build mkdir build-static
cd build mkdir build-shared
cd build-static
# test cmake and ninja # test cmake and ninja
if [ `uname` = "Darwin" ]; then if [ `uname` = "Darwin" ]; then
cmake .. cmake ..
make make
make test make test
cd ../build-shared
cmake -DBUILD_SHARED_LIBS=ON ..
make
make test
else else
sudo apt-get update sudo apt-get update
sudo apt-get install -y cmake ninja-build sudo apt-get install -y cmake ninja-build
cmake -GNinja .. cmake -GNinja ..
ninja ninja
ninja test ninja test
cd ../build-shared
cmake -GNinja -DBUILD_SHARED_LIBS=ON ..
ninja
ninja test
fi fi
else else
CPU=i686 CPU=i686