Mercurial > dropbear
comparison .travis.yml @ 1566:3fc0e9a0978b
add fuzzers to travis
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 01 Mar 2018 22:54:57 +0800 |
parents | cf43bbb6b8ff |
children | 2799a1d55b59 |
comparison
equal
deleted
inserted
replaced
1565:2fd52c383163 | 1566:3fc0e9a0978b |
---|---|
9 - os: linux | 9 - os: linux |
10 compiler: gcc | 10 compiler: gcc |
11 env: WEXTRAFLAGS=-Werror | 11 env: WEXTRAFLAGS=-Werror |
12 - env: MULTI=1 WEXTRAFLAGS=-Werror | 12 - env: MULTI=1 WEXTRAFLAGS=-Werror |
13 # libtom has some warnings, so no WEXTRAFLAGS | 13 # libtom has some warnings, so no WEXTRAFLAGS |
14 - env: BUNDLEDLIBTOM=--enable-bundled-libtom WEXTRAFLAGS="" | 14 - env: CONFIGURE_FLAGS=--enable-bundled-libtom WEXTRAFLAGS="" |
15 - env: NOWRITEV=1 WEXTRAFLAGS=-Werror | 15 - env: NOWRITEV=1 WEXTRAFLAGS=-Werror |
16 # libtomcrypt 1.18.1 fixes clang problems, distro doesn't have that yet | 16 # libtomcrypt 1.18.1 fixes clang problems, distro doesn't have that yet |
17 - os: linux | 17 - os: linux |
18 compiler: clang | 18 compiler: clang |
19 env: BUNDLEDLIBTOM=--enable-bundled-libtom WEXTRAFLAGS="" | 19 env: CONFIGURE_FLAGS=--enable-bundled-libtom WEXTRAFLAGS="" |
20 - os: osx | 20 - os: osx |
21 compiler: clang | 21 compiler: clang |
22 env: WEXTRAFLAGS="" | 22 env: WEXTRAFLAGS="" |
23 - env: DO_FUZZ=1 CONFIGURE_FLAGS="--enable-fuzz --disable-harden" EXTRACFLAGS=-fsanitize=address CC="clang-5.0" LDFLAGS=-fsanitize=address | |
23 | 24 |
24 # container-based builds | 25 # container-based builds |
25 sudo: false | 26 sudo: false |
26 addons: | 27 addons: |
27 apt: | 28 apt: |
28 packages: | 29 packages: |
29 # packages list: https://github.com/travis-ci/apt-package-whitelist/blob/master/ubuntu-precise | 30 # packages list: https://github.com/travis-ci/apt-package-whitelist/blob/master/ubuntu-precise |
30 - zlib1g-dev | 31 - zlib1g-dev |
31 - libtomcrypt-dev | 32 - libtomcrypt-dev |
32 - libtommath-dev | 33 - libtommath-dev |
33 | 34 - mercurial |
35 - clang-5.0 | |
34 | 36 |
35 before_install: | 37 before_install: |
36 - if [ "$CC" = "clang" ]; then WEXTRAFLAGS="$WEXTRAFLAGS -Wno-error=incompatible-library-redeclaration" ; fi # workaround | 38 - if [ "$CC" = "clang" ]; then WEXTRAFLAGS="$WEXTRAFLAGS -Wno-error=incompatible-library-redeclaration" ; fi # workaround |
37 | 39 |
38 script: | 40 install: |
39 - autoconf && autoheader && ./configure "$BUNDLEDLIBTOM" CFLAGS="-O2 -Wall -Wno-pointer-sign $WEXTRAFLAGS" --prefix="$HOME/inst" | 41 - autoconf && autoheader && ./configure $CONFIGURE_FLAGS CFLAGS="-O2 -Wall -Wno-pointer-sign $WEXTRAFLAGS $EXTRACFLAGS" --prefix="$HOME/inst" |
40 - if [ "$NOWRITEV" = "1" ]; then sed -i -e s/HAVE_WRITEV/DONT_HAVE_WRITEV/ config.h ; fi | 42 - if [ "$NOWRITEV" = "1" ]; then sed -i -e s/HAVE_WRITEV/DONT_HAVE_WRITEV/ config.h ; fi |
41 - make -j3 | 43 - make -j3 |
44 - test -z $DO_FUZZ || make fuzzstandalone | |
42 # avoid concurrent install, osx/freebsd is racey (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208093) | 45 # avoid concurrent install, osx/freebsd is racey (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208093) |
43 - make install | 46 - make install |
44 | 47 |
45 after_success: | 48 script: |
46 - ~/inst/bin/dropbearkey -t rsa -f testrsa | 49 - ~/inst/bin/dropbearkey -t rsa -f testrsa |
47 - ~/inst/bin/dropbearkey -t dss -f testdss | 50 - ~/inst/bin/dropbearkey -t dss -f testdss |
48 - ~/inst/bin/dropbearkey -t ecdsa -f testec256 -s 256 | 51 - ~/inst/bin/dropbearkey -t ecdsa -f testec256 -s 256 |
49 - ~/inst/bin/dropbearkey -t ecdsa -f testec384 -s 384 | 52 - ~/inst/bin/dropbearkey -t ecdsa -f testec384 -s 384 |
50 - ~/inst/bin/dropbearkey -t ecdsa -f testec521 -s 521 | 53 - ~/inst/bin/dropbearkey -t ecdsa -f testec521 -s 521 |
54 - test -z $DO_FUZZ || ./fuzzers_test.sh | |
51 | 55 |
52 branches: | 56 branches: |
53 only: | 57 only: |
54 - master | 58 - master |
55 - coverity | 59 - coverity |