add travis-ci cmake tests
This commit is contained in:
parent
5dc6303714
commit
5de4c4f0eb
46
.travis.yml
46
.travis.yml
@ -1,24 +1,30 @@
|
|||||||
language: c
|
language: c
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- compiler: clang
|
- compiler: clang
|
||||||
os: osx
|
os: osx
|
||||||
env: ARCH=native
|
env: ARCH=native
|
||||||
- compiler: gcc
|
- compiler: gcc
|
||||||
os: osx
|
os: osx
|
||||||
env: ARCH=native
|
env: ARCH=native
|
||||||
- compiler: clang
|
- compiler: clang
|
||||||
os: linux
|
os: linux
|
||||||
env: ARCH=native
|
env: ARCH=native
|
||||||
- compiler: gcc
|
- compiler: gcc
|
||||||
os: linux
|
os: linux
|
||||||
env: ARCH=native
|
env: ARCH=native
|
||||||
- compiler: gcc
|
- compiler: gcc
|
||||||
os: linux
|
os: linux
|
||||||
env: ARCH=mingw32
|
env: ARCH=mingw32
|
||||||
- compiler: gcc
|
- compiler: gcc
|
||||||
os: linux
|
os: linux
|
||||||
env: ARCH=mingw64
|
env: ARCH=mingw64
|
||||||
|
|
||||||
script:
|
script:
|
||||||
"./scripts/travis"
|
"./scripts/travis"
|
||||||
|
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- cmake
|
||||||
|
- ninja-build
|
||||||
|
@ -4,6 +4,7 @@ set -e
|
|||||||
./autogen.sh
|
./autogen.sh
|
||||||
|
|
||||||
if [ "x$ARCH" = "xnative" ]; then
|
if [ "x$ARCH" = "xnative" ]; then
|
||||||
|
# test autotools
|
||||||
./configure
|
./configure
|
||||||
if [ `uname` = "Darwin" ]; then
|
if [ `uname` = "Darwin" ]; then
|
||||||
# OS X runs out of resources if we run 'make -j check'
|
# OS X runs out of resources if we run 'make -j check'
|
||||||
@ -11,6 +12,17 @@ if [ "x$ARCH" = "xnative" ]; then
|
|||||||
else
|
else
|
||||||
make -j distcheck
|
make -j distcheck
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# make distribution
|
||||||
|
make dist
|
||||||
|
tar zxvf libressl-*.tar.gz
|
||||||
|
cd libressl-*
|
||||||
|
|
||||||
|
# test cmake and ninja
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
cmake -GNinja ..
|
||||||
|
ninja
|
||||||
else
|
else
|
||||||
CPU=i686
|
CPU=i686
|
||||||
if [ "x$ARCH" = "xmingw64" ]; then
|
if [ "x$ARCH" = "xmingw64" ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user