Mercurial > dropbear
comparison .travis.yml @ 1243:2e3d083483de
TravisCI: enable osx builds
author | Chocobo1 <Chocobo1@users.noreply.github.com> |
---|---|
date | Tue, 05 Jan 2016 14:19:58 +0800 |
parents | 53111b3413dc |
children | 5b7cc2230de7 |
comparison
equal
deleted
inserted
replaced
1242:53111b3413dc | 1243:2e3d083483de |
---|---|
1 language: c | 1 language: c |
2 | 2 |
3 os: | |
4 - linux | |
5 - osx | |
6 | |
3 env: | 7 env: |
4 - BUNDLEDLIBTOM=--disable-bundled-libtom WEXTRAFLAGS=-Werror | 8 matrix: |
5 - BUNDLEDLIBTOM=--enable-bundled-libtom | 9 - BUNDLEDLIBTOM=--disable-bundled-libtom WEXTRAFLAGS=-Werror |
6 - MULTI=1 | 10 - BUNDLEDLIBTOM=--enable-bundled-libtom |
7 - NOWRITEV=1 | 11 - MULTI=1 |
12 - NOWRITEV=1 | |
13 | |
14 # TODO: remove this section when libtomcrypt compiles on OSX: https://github.com/libtom/libtomcrypt/issues/82 | |
15 matrix: | |
16 exclude: | |
17 - os: osx | |
18 env: BUNDLEDLIBTOM=--disable-bundled-libtom WEXTRAFLAGS=-Werror | |
19 - os: osx | |
20 env: MULTI=1 | |
21 - os: osx | |
22 env: NOWRITEV=1 | |
8 | 23 |
9 compiler: | 24 compiler: |
10 - gcc | 25 - gcc |
11 - clang | 26 - clang |
12 | 27 |
18 # packages list: https://github.com/travis-ci/apt-package-whitelist/blob/master/ubuntu-precise | 33 # packages list: https://github.com/travis-ci/apt-package-whitelist/blob/master/ubuntu-precise |
19 - zlib1g-dev | 34 - zlib1g-dev |
20 - libtomcrypt-dev | 35 - libtomcrypt-dev |
21 - libtommath-dev | 36 - libtommath-dev |
22 | 37 |
38 | |
39 install: | |
40 - if [ "$TRAVIS_OS_NAME" = "osx" -a "$BUNDLEDLIBTOM" != "--enable-bundled-libtom" ]; then brew update > /dev/null && brew install libtomcrypt libtommath ; fi | |
41 | |
23 script: | 42 script: |
24 - autoconf && autoheader && ./configure $BUNDLEDLIBTOM CFLAGS="-O2 -Wall -Wno-pointer-sign $WEXTRAFLAGS" --prefix=$HOME/inst | 43 - autoconf && autoheader && ./configure $BUNDLEDLIBTOM CFLAGS="-O2 -Wall -Wno-pointer-sign $WEXTRAFLAGS" --prefix=$HOME/inst |
25 - test "$NOWRITEV" && sed -i s/HAVE_WRITEV/DONT_HAVE_WRITEV/ config.h || true | 44 - test "$NOWRITEV" && sed -i s/HAVE_WRITEV/DONT_HAVE_WRITEV/ config.h || true |
26 - make -j3 install | 45 - make -j3 install |
27 | 46 |