Mercurial > dropbear
annotate .travis.yml @ 1550:93a3726a36d6
Remove unused tests for headers and functions
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 27 Feb 2018 21:41:56 +0800 |
parents | cf43bbb6b8ff |
children | eb4c7052f51d 3fc0e9a0978b |
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 |
3a916b945185
Use an explicit matrix instead, avoid bad clang combinations etc
Matt Johnston <matt@ucc.asn.au>
parents:
1481
diff
changeset
|
12 - 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
|
13 # libtom has some warnings, so no WEXTRAFLAGS |
3a916b945185
Use an explicit matrix instead, avoid bad clang combinations etc
Matt Johnston <matt@ucc.asn.au>
parents:
1481
diff
changeset
|
14 - env: BUNDLEDLIBTOM=--enable-bundled-libtom WEXTRAFLAGS="" |
3a916b945185
Use an explicit matrix instead, avoid bad clang combinations etc
Matt Johnston <matt@ucc.asn.au>
parents:
1481
diff
changeset
|
15 - env: NOWRITEV=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 # libtomcrypt 1.18.1 fixes clang problems, distro doesn't have that yet |
3a916b945185
Use an explicit matrix instead, avoid bad clang combinations etc
Matt Johnston <matt@ucc.asn.au>
parents:
1481
diff
changeset
|
17 - os: linux |
3a916b945185
Use an explicit matrix instead, avoid bad clang combinations etc
Matt Johnston <matt@ucc.asn.au>
parents:
1481
diff
changeset
|
18 compiler: clang |
3a916b945185
Use an explicit matrix instead, avoid bad clang combinations etc
Matt Johnston <matt@ucc.asn.au>
parents:
1481
diff
changeset
|
19 env: BUNDLEDLIBTOM=--enable-bundled-libtom WEXTRAFLAGS="" |
3a916b945185
Use an explicit matrix instead, avoid bad clang combinations etc
Matt Johnston <matt@ucc.asn.au>
parents:
1481
diff
changeset
|
20 - os: osx |
3a916b945185
Use an explicit matrix instead, avoid bad clang combinations etc
Matt Johnston <matt@ucc.asn.au>
parents:
1481
diff
changeset
|
21 compiler: clang |
3a916b945185
Use an explicit matrix instead, avoid bad clang combinations etc
Matt Johnston <matt@ucc.asn.au>
parents:
1481
diff
changeset
|
22 env: WEXTRAFLAGS="" |
1242
53111b3413dc
TravisCI: enable build with clang
Chocobo1 <Chocobo1@users.noreply.github.com>
parents:
1241
diff
changeset
|
23 |
1240
87a43bf49e37
TravisCI: modify to run builds in container
Chocobo1 <Chocobo1@users.noreply.github.com>
parents:
1142
diff
changeset
|
24 # container-based builds |
87a43bf49e37
TravisCI: modify to run builds in container
Chocobo1 <Chocobo1@users.noreply.github.com>
parents:
1142
diff
changeset
|
25 sudo: false |
87a43bf49e37
TravisCI: modify to run builds in container
Chocobo1 <Chocobo1@users.noreply.github.com>
parents:
1142
diff
changeset
|
26 addons: |
87a43bf49e37
TravisCI: modify to run builds in container
Chocobo1 <Chocobo1@users.noreply.github.com>
parents:
1142
diff
changeset
|
27 apt: |
87a43bf49e37
TravisCI: modify to run builds in container
Chocobo1 <Chocobo1@users.noreply.github.com>
parents:
1142
diff
changeset
|
28 packages: |
87a43bf49e37
TravisCI: modify to run builds in container
Chocobo1 <Chocobo1@users.noreply.github.com>
parents:
1142
diff
changeset
|
29 # 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
|
30 - zlib1g-dev |
87a43bf49e37
TravisCI: modify to run builds in container
Chocobo1 <Chocobo1@users.noreply.github.com>
parents:
1142
diff
changeset
|
31 - libtomcrypt-dev |
87a43bf49e37
TravisCI: modify to run builds in container
Chocobo1 <Chocobo1@users.noreply.github.com>
parents:
1142
diff
changeset
|
32 - libtommath-dev |
87a43bf49e37
TravisCI: modify to run builds in container
Chocobo1 <Chocobo1@users.noreply.github.com>
parents:
1142
diff
changeset
|
33 |
1243
2e3d083483de
TravisCI: enable osx builds
Chocobo1 <Chocobo1@users.noreply.github.com>
parents:
1242
diff
changeset
|
34 |
1245
cb0806413220
TravisCI: fix linux + clang compile
Chocobo1 <Chocobo1@users.noreply.github.com>
parents:
1244
diff
changeset
|
35 before_install: |
cb0806413220
TravisCI: fix linux + clang compile
Chocobo1 <Chocobo1@users.noreply.github.com>
parents:
1244
diff
changeset
|
36 - 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
|
37 |
1240
87a43bf49e37
TravisCI: modify to run builds in container
Chocobo1 <Chocobo1@users.noreply.github.com>
parents:
1142
diff
changeset
|
38 script: |
1244
5b7cc2230de7
TravisCI: use `if` block
Chocobo1 <Chocobo1@users.noreply.github.com>
parents:
1243
diff
changeset
|
39 - autoconf && autoheader && ./configure "$BUNDLEDLIBTOM" CFLAGS="-O2 -Wall -Wno-pointer-sign $WEXTRAFLAGS" --prefix="$HOME/inst" |
1262
71698088bdac
TravisCI: re-enable MULTI=1 & NOWRITEV=1 builds on OSX, fixes d416a9b
Chocobo1 <Chocobo1@users.noreply.github.com>
parents:
1245
diff
changeset
|
40 - if [ "$NOWRITEV" = "1" ]; then sed -i -e s/HAVE_WRITEV/DONT_HAVE_WRITEV/ config.h ; fi |
1291 | 41 - make -j3 |
42 # avoid concurrent install, osx/freebsd is racey (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208093) | |
43 - make install | |
1240
87a43bf49e37
TravisCI: modify to run builds in container
Chocobo1 <Chocobo1@users.noreply.github.com>
parents:
1142
diff
changeset
|
44 |
87a43bf49e37
TravisCI: modify to run builds in container
Chocobo1 <Chocobo1@users.noreply.github.com>
parents:
1142
diff
changeset
|
45 after_success: |
915 | 46 - ~/inst/bin/dropbearkey -t rsa -f testrsa |
47 - ~/inst/bin/dropbearkey -t dss -f testdss | |
48 - ~/inst/bin/dropbearkey -t ecdsa -f testec256 -s 256 | |
49 - ~/inst/bin/dropbearkey -t ecdsa -f testec384 -s 384 | |
50 - ~/inst/bin/dropbearkey -t ecdsa -f testec521 -s 521 | |
1486 | 51 |
52 branches: | |
53 only: | |
54 - master | |
55 - coverity | |
56 |