diff --git a/.travis.yml b/.travis.yml index 2fce9df..1a767b3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,24 +1,30 @@ language: c matrix: - include: - - compiler: clang - os: osx - env: ARCH=native - - compiler: gcc - os: osx - env: ARCH=native - - compiler: clang - os: linux - env: ARCH=native - - compiler: gcc - os: linux - env: ARCH=native - - compiler: gcc - os: linux - env: ARCH=mingw32 - - compiler: gcc - os: linux - env: ARCH=mingw64 + include: + - compiler: clang + os: osx + env: ARCH=native + - compiler: gcc + os: osx + env: ARCH=native + - compiler: clang + os: linux + env: ARCH=native + - compiler: gcc + os: linux + env: ARCH=native + - compiler: gcc + os: linux + env: ARCH=mingw32 + - compiler: gcc + os: linux + env: ARCH=mingw64 script: - "./scripts/travis" + "./scripts/travis" + +addons: + apt: + packages: + - cmake + - ninja-build diff --git a/scripts/travis b/scripts/travis index 091f37d..82375cf 100755 --- a/scripts/travis +++ b/scripts/travis @@ -4,6 +4,7 @@ set -e ./autogen.sh if [ "x$ARCH" = "xnative" ]; then + # test autotools ./configure if [ `uname` = "Darwin" ]; then # OS X runs out of resources if we run 'make -j check' @@ -11,6 +12,17 @@ if [ "x$ARCH" = "xnative" ]; then else make -j distcheck fi + + # make distribution + make dist + tar zxvf libressl-*.tar.gz + cd libressl-* + + # test cmake and ninja + mkdir build + cd build + cmake -GNinja .. + ninja else CPU=i686 if [ "x$ARCH" = "xmingw64" ]; then