libreSSL/scripts/travis

46 lines
704 B
Plaintext
Raw Normal View History

#!/bin/sh
set -e
./autogen.sh
if [ "x$ARCH" = "xnative" ]; then
2015-09-11 15:03:56 +02:00
# test autotools
./configure
make -j 4 distcheck
2015-09-11 15:03:56 +02:00
# make distribution
make dist
tar zxvf libressl-*.tar.gz
cd libressl-*
mkdir build
cd build
# test cmake and ninja
if [ `uname` = "Darwin" ]; then
2015-09-11 15:03:56 +02:00
cmake ..
make
2015-09-17 12:48:09 +02:00
make test
else
2015-09-11 15:03:56 +02:00
sudo apt-get update
sudo apt-get install -y cmake ninja-build
cmake -GNinja ..
ninja
ninja test
fi
else
CPU=i686
if [ "x$ARCH" = "xmingw64" ]; then
CPU=x86_64
fi
export CC=$CPU-w64-mingw32-gcc
if [ -z $(which $CC) ]; then
sudo apt-get update
2016-11-13 20:10:42 +01:00
sudo apt-get install -y mingw-w64 make
export PATH=$PATH:/opt/$ARCH/bin
fi
./configure --host=$CPU-w64-mingw32
make -j
fi