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
tar zxvf libressl-*.tar.gz
cd libressl-*
mkdir build
cd build
mkdir build-static
mkdir build-shared
cd build-static
# test cmake and ninja
if [ `uname` = "Darwin" ]; then
cmake ..
make
make test
cd ../build-shared
cmake -DBUILD_SHARED_LIBS=ON ..
make
make test
else
sudo apt-get update
sudo apt-get install -y cmake ninja-build
cmake -GNinja ..
ninja
ninja test
cd ../build-shared
cmake -GNinja -DBUILD_SHARED_LIBS=ON ..
ninja
ninja test
fi
else
CPU=i686