comparison .travis.yml @ 1262:71698088bdac

TravisCI: re-enable MULTI=1 & NOWRITEV=1 builds on OSX, fixes d416a9b
author Chocobo1 <Chocobo1@users.noreply.github.com>
date Wed, 20 Jan 2016 21:56:39 +0800
parents cb0806413220
children 7d02b83c61fd 4a4e5d823cf6
comparison
equal deleted inserted replaced
1246:1df4a0a162d7 1262:71698088bdac
14 # TODO: remove this section when libtomcrypt compiles on OSX: https://github.com/libtom/libtomcrypt/issues/82 14 # TODO: remove this section when libtomcrypt compiles on OSX: https://github.com/libtom/libtomcrypt/issues/82
15 matrix: 15 matrix:
16 exclude: 16 exclude:
17 - os: osx 17 - os: osx
18 env: BUNDLEDLIBTOM=--disable-bundled-libtom WEXTRAFLAGS=-Werror 18 env: BUNDLEDLIBTOM=--disable-bundled-libtom WEXTRAFLAGS=-Werror
19 - os: osx
20 env: MULTI=1
21 - os: osx
22 env: NOWRITEV=1
23 19
24 compiler: 20 compiler:
25 - gcc 21 - gcc
26 - clang 22 - clang
27 23
38 34
39 before_install: 35 before_install:
40 - if [ "$CC" = "clang" ]; then WEXTRAFLAGS="$WEXTRAFLAGS -Wno-error=incompatible-library-redeclaration" ; fi # workaround 36 - if [ "$CC" = "clang" ]; then WEXTRAFLAGS="$WEXTRAFLAGS -Wno-error=incompatible-library-redeclaration" ; fi # workaround
41 37
42 install: 38 install:
43 - if [ "$TRAVIS_OS_NAME" = "osx" -a "$BUNDLEDLIBTOM" != "--enable-bundled-libtom" ]; then brew update > /dev/null && brew install libtomcrypt libtommath ; fi 39 - if [ "$TRAVIS_OS_NAME" = "osx" -a "$BUNDLEDLIBTOM" = "--disable-bundled-libtom" ]; then brew update > /dev/null && brew install libtomcrypt libtommath ; fi
44 40
45 script: 41 script:
46 - autoconf && autoheader && ./configure "$BUNDLEDLIBTOM" CFLAGS="-O2 -Wall -Wno-pointer-sign $WEXTRAFLAGS" --prefix="$HOME/inst" 42 - autoconf && autoheader && ./configure "$BUNDLEDLIBTOM" CFLAGS="-O2 -Wall -Wno-pointer-sign $WEXTRAFLAGS" --prefix="$HOME/inst"
47 - if [ "$NOWRITEV" = "1" ]; then sed -i s/HAVE_WRITEV/DONT_HAVE_WRITEV/ config.h ; fi 43 - if [ "$NOWRITEV" = "1" ]; then sed -i -e s/HAVE_WRITEV/DONT_HAVE_WRITEV/ config.h ; fi
48 - make -j3 install 44 - make -j3 install
49 45
50 after_success: 46 after_success:
51 - ~/inst/bin/dropbearkey -t rsa -f testrsa 47 - ~/inst/bin/dropbearkey -t rsa -f testrsa
52 - ~/inst/bin/dropbearkey -t dss -f testdss 48 - ~/inst/bin/dropbearkey -t dss -f testdss