diff options
author | Brent Cook <bcook@openbsd.org> | 2015-09-11 08:03:56 -0500 |
---|---|---|
committer | Brent Cook <bcook@openbsd.org> | 2015-09-11 08:04:28 -0500 |
commit | b5090c5853d99416440767e742fb055623e3dd26 (patch) | |
tree | 4a7e07c010c3e1e27ae4b20c34dcf266937455fa | |
parent | afd031f0edfc38575a43dca7aa5a3b5a198333d8 (diff) | |
download | portable-b5090c5853d99416440767e742fb055623e3dd26.tar.gz portable-b5090c5853d99416440767e742fb055623e3dd26.tar.bz2 portable-b5090c5853d99416440767e742fb055623e3dd26.zip |
add cmake test support
-rwxr-xr-x | scripts/travis | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/scripts/travis b/scripts/travis index 091f37d..8fa3035 100755 --- a/scripts/travis +++ b/scripts/travis | |||
@@ -4,12 +4,29 @@ set -e | |||
4 | ./autogen.sh | 4 | ./autogen.sh |
5 | 5 | ||
6 | if [ "x$ARCH" = "xnative" ]; then | 6 | if [ "x$ARCH" = "xnative" ]; then |
7 | # test autotools | ||
7 | ./configure | 8 | ./configure |
9 | make check | ||
10 | |||
11 | # make distribution | ||
12 | make dist | ||
13 | tar zxvf libressl-*.tar.gz | ||
14 | cd libressl-* | ||
15 | mkdir build | ||
16 | cd build | ||
17 | |||
18 | # test cmake and ninja | ||
8 | if [ `uname` = "Darwin" ]; then | 19 | if [ `uname` = "Darwin" ]; then |
9 | # OS X runs out of resources if we run 'make -j check' | 20 | cmake .. |
10 | make check | 21 | make |
11 | else | 22 | else |
12 | make -j distcheck | 23 | sudo apt-get update |
24 | sudo apt-get install -y python-software-properties | ||
25 | sudo apt-add-repository -y ppa:kalakris/cmake | ||
26 | sudo apt-get update | ||
27 | sudo apt-get install -y cmake ninja-build | ||
28 | cmake -GNinja .. | ||
29 | ninja | ||
13 | fi | 30 | fi |
14 | else | 31 | else |
15 | CPU=i686 | 32 | CPU=i686 |