Mercurial > dropbear
annotate .travis.yml @ 1689:d2d3b5ba6c64
update travis to Ubuntu focal to provide chacha20
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 26 May 2020 23:13:48 +0800 |
parents | 5e763ad6e2e0 |
children | 2a06ef4ba80d |
rev | line source |
---|---|
912
e630c7aecff7
Add Travis CI autobuilder config
Matt Johnston <matt@ucc.asn.au>
parents:
diff
changeset
|
1 language: c |
1240
87a43bf49e37
TravisCI: modify to run builds in container
Chocobo1 <Chocobo1@users.noreply.github.com>
parents:
1142
diff
changeset
|
2 |
1485
3a916b945185
Use an explicit matrix instead, avoid bad clang combinations etc
Matt Johnston <matt@ucc.asn.au>
parents:
1481
diff
changeset
|
3 git: |
3a916b945185
Use an explicit matrix instead, avoid bad clang combinations etc
Matt Johnston <matt@ucc.asn.au>
parents:
1481
diff
changeset
|
4 depth: 3 |
1243
2e3d083483de
TravisCI: enable osx builds
Chocobo1 <Chocobo1@users.noreply.github.com>
parents:
1242
diff
changeset
|
5 |
2e3d083483de
TravisCI: enable osx builds
Chocobo1 <Chocobo1@users.noreply.github.com>
parents:
1242
diff
changeset
|
6 matrix: |
1485
3a916b945185
Use an explicit matrix instead, avoid bad clang combinations etc
Matt Johnston <matt@ucc.asn.au>
parents:
1481
diff
changeset
|
7 include: |
3a916b945185
Use an explicit matrix instead, avoid bad clang combinations etc
Matt Johnston <matt@ucc.asn.au>
parents:
1481
diff
changeset
|
8 # subsequent matrix options use these first settings |
3a916b945185
Use an explicit matrix instead, avoid bad clang combinations etc
Matt Johnston <matt@ucc.asn.au>
parents:
1481
diff
changeset
|
9 - os: linux |
3a916b945185
Use an explicit matrix instead, avoid bad clang combinations etc
Matt Johnston <matt@ucc.asn.au>
parents:
1481
diff
changeset
|
10 compiler: gcc |
3a916b945185
Use an explicit matrix instead, avoid bad clang combinations etc
Matt Johnston <matt@ucc.asn.au>
parents:
1481
diff
changeset
|
11 env: WEXTRAFLAGS=-Werror |
1581 | 12 sudo: false |
1689
d2d3b5ba6c64
update travis to Ubuntu focal to provide chacha20
Matt Johnston <matt@ucc.asn.au>
parents:
1680
diff
changeset
|
13 # use focal which provides libtommath 1.20 |
d2d3b5ba6c64
update travis to Ubuntu focal to provide chacha20
Matt Johnston <matt@ucc.asn.au>
parents:
1680
diff
changeset
|
14 dist: focal |
1485
3a916b945185
Use an explicit matrix instead, avoid bad clang combinations etc
Matt Johnston <matt@ucc.asn.au>
parents:
1481
diff
changeset
|
15 - env: MULTI=1 WEXTRAFLAGS=-Werror |
3a916b945185
Use an explicit matrix instead, avoid bad clang combinations etc
Matt Johnston <matt@ucc.asn.au>
parents:
1481
diff
changeset
|
16 # libtom has some warnings, so no WEXTRAFLAGS |
1566 | 17 - env: CONFIGURE_FLAGS=--enable-bundled-libtom WEXTRAFLAGS="" |
1689
d2d3b5ba6c64
update travis to Ubuntu focal to provide chacha20
Matt Johnston <matt@ucc.asn.au>
parents:
1680
diff
changeset
|
18 # can use an older distro with bundled libtom |
d2d3b5ba6c64
update travis to Ubuntu focal to provide chacha20
Matt Johnston <matt@ucc.asn.au>
parents:
1680
diff
changeset
|
19 dist: xenial |
d2d3b5ba6c64
update travis to Ubuntu focal to provide chacha20
Matt Johnston <matt@ucc.asn.au>
parents:
1680
diff
changeset
|
20 - env: NOWRITEV=1 |
1485
3a916b945185
Use an explicit matrix instead, avoid bad clang combinations etc
Matt Johnston <matt@ucc.asn.au>
parents:
1481
diff
changeset
|
21 - os: linux |
3a916b945185
Use an explicit matrix instead, avoid bad clang combinations etc
Matt Johnston <matt@ucc.asn.au>
parents:
1481
diff
changeset
|
22 compiler: clang |
3a916b945185
Use an explicit matrix instead, avoid bad clang combinations etc
Matt Johnston <matt@ucc.asn.au>
parents:
1481
diff
changeset
|
23 - os: osx |
3a916b945185
Use an explicit matrix instead, avoid bad clang combinations etc
Matt Johnston <matt@ucc.asn.au>
parents:
1481
diff
changeset
|
24 compiler: clang |
3a916b945185
Use an explicit matrix instead, avoid bad clang combinations etc
Matt Johnston <matt@ucc.asn.au>
parents:
1481
diff
changeset
|
25 env: WEXTRAFLAGS="" |
1570
67cb1983500b
avoid fsanitize=address for fuzzing
Matt Johnston <matt@ucc.asn.au>
parents:
1567
diff
changeset
|
26 |
1581 | 27 # Note: the fuzzing malloc wrapper doesn't replace free() in system libtomcrypt, so need bundled. |
1583 | 28 - env: DO_FUZZ=1 CONFIGURE_FLAGS="--enable-fuzz --disable-harden --enable-bundled-libtom" WEXTRAFLAGS="" LDFLAGS=-fsanitize=address EXTRACFLAGS=-fsanitize=address CXX=clang++ |
1567 | 29 compiler: clang |
1581 | 30 # sanitizers need ptrace which is privileged https://github.com/travis-ci/travis-ci/issues/9033 |
31 sudo: required | |
1242
53111b3413dc
TravisCI: enable build with clang
Chocobo1 <Chocobo1@users.noreply.github.com>
parents:
1241
diff
changeset
|
32 |
1240
87a43bf49e37
TravisCI: modify to run builds in container
Chocobo1 <Chocobo1@users.noreply.github.com>
parents:
1142
diff
changeset
|
33 # container-based builds |
87a43bf49e37
TravisCI: modify to run builds in container
Chocobo1 <Chocobo1@users.noreply.github.com>
parents:
1142
diff
changeset
|
34 addons: |
87a43bf49e37
TravisCI: modify to run builds in container
Chocobo1 <Chocobo1@users.noreply.github.com>
parents:
1142
diff
changeset
|
35 apt: |
87a43bf49e37
TravisCI: modify to run builds in container
Chocobo1 <Chocobo1@users.noreply.github.com>
parents:
1142
diff
changeset
|
36 packages: |
87a43bf49e37
TravisCI: modify to run builds in container
Chocobo1 <Chocobo1@users.noreply.github.com>
parents:
1142
diff
changeset
|
37 # packages list: https://github.com/travis-ci/apt-package-whitelist/blob/master/ubuntu-precise |
87a43bf49e37
TravisCI: modify to run builds in container
Chocobo1 <Chocobo1@users.noreply.github.com>
parents:
1142
diff
changeset
|
38 - zlib1g-dev |
87a43bf49e37
TravisCI: modify to run builds in container
Chocobo1 <Chocobo1@users.noreply.github.com>
parents:
1142
diff
changeset
|
39 - libtomcrypt-dev |
87a43bf49e37
TravisCI: modify to run builds in container
Chocobo1 <Chocobo1@users.noreply.github.com>
parents:
1142
diff
changeset
|
40 - libtommath-dev |
1566 | 41 - mercurial |
1243
2e3d083483de
TravisCI: enable osx builds
Chocobo1 <Chocobo1@users.noreply.github.com>
parents:
1242
diff
changeset
|
42 |
1245
cb0806413220
TravisCI: fix linux + clang compile
Chocobo1 <Chocobo1@users.noreply.github.com>
parents:
1244
diff
changeset
|
43 before_install: |
cb0806413220
TravisCI: fix linux + clang compile
Chocobo1 <Chocobo1@users.noreply.github.com>
parents:
1244
diff
changeset
|
44 - if [ "$CC" = "clang" ]; then WEXTRAFLAGS="$WEXTRAFLAGS -Wno-error=incompatible-library-redeclaration" ; fi # workaround |
cb0806413220
TravisCI: fix linux + clang compile
Chocobo1 <Chocobo1@users.noreply.github.com>
parents:
1244
diff
changeset
|
45 |
1566 | 46 install: |
1578
fdadac70ee67
add -fsanitize=address for fuzz test again
Matt Johnston <matt@ucc.asn.au>
parents:
1572
diff
changeset
|
47 - autoconf |
fdadac70ee67
add -fsanitize=address for fuzz test again
Matt Johnston <matt@ucc.asn.au>
parents:
1572
diff
changeset
|
48 - autoheader |
1579
8c1f762c6e9d
print config.log on failure
Matt Johnston <matt@ucc.asn.au>
parents:
1578
diff
changeset
|
49 - ./configure $CONFIGURE_FLAGS CFLAGS="-O2 -Wall -Wno-pointer-sign $WEXTRAFLAGS $EXTRACFLAGS" --prefix="$HOME/inst" || (cat config.log; exit 1) |
1262
71698088bdac
TravisCI: re-enable MULTI=1 & NOWRITEV=1 builds on OSX, fixes d416a9b
Chocobo1 <Chocobo1@users.noreply.github.com>
parents:
1245
diff
changeset
|
50 - if [ "$NOWRITEV" = "1" ]; then sed -i -e s/HAVE_WRITEV/DONT_HAVE_WRITEV/ config.h ; fi |
1680 | 51 - make lint |
1291 | 52 - make -j3 |
1578
fdadac70ee67
add -fsanitize=address for fuzz test again
Matt Johnston <matt@ucc.asn.au>
parents:
1572
diff
changeset
|
53 - test -z $DO_FUZZ || make fuzzstandalone |
1291 | 54 # avoid concurrent install, osx/freebsd is racey (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208093) |
55 - make install | |
1240
87a43bf49e37
TravisCI: modify to run builds in container
Chocobo1 <Chocobo1@users.noreply.github.com>
parents:
1142
diff
changeset
|
56 |
1566 | 57 script: |
915 | 58 - ~/inst/bin/dropbearkey -t rsa -f testrsa |
59 - ~/inst/bin/dropbearkey -t dss -f testdss | |
60 - ~/inst/bin/dropbearkey -t ecdsa -f testec256 -s 256 | |
61 - ~/inst/bin/dropbearkey -t ecdsa -f testec384 -s 384 | |
62 - ~/inst/bin/dropbearkey -t ecdsa -f testec521 -s 521 | |
1659
d32bcb5c557d
Add Ed25519 support (#91)
Vladislav Grishenko <themiron@users.noreply.github.com>
parents:
1583
diff
changeset
|
63 - ~/inst/bin/dropbearkey -t ed25519 -f tested25519 |
1566 | 64 - test -z $DO_FUZZ || ./fuzzers_test.sh |
1486 | 65 |
66 branches: | |
67 only: | |
68 - master | |
69 - coverity | |
70 |