annotate .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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
1243
2e3d083483de TravisCI: enable osx builds
Chocobo1 <Chocobo1@users.noreply.github.com>
parents: 1242
diff changeset
3 os:
2e3d083483de TravisCI: enable osx builds
Chocobo1 <Chocobo1@users.noreply.github.com>
parents: 1242
diff changeset
4 - linux
2e3d083483de TravisCI: enable osx builds
Chocobo1 <Chocobo1@users.noreply.github.com>
parents: 1242
diff changeset
5 - osx
2e3d083483de TravisCI: enable osx builds
Chocobo1 <Chocobo1@users.noreply.github.com>
parents: 1242
diff changeset
6
1240
87a43bf49e37 TravisCI: modify to run builds in container
Chocobo1 <Chocobo1@users.noreply.github.com>
parents: 1142
diff changeset
7 env:
1243
2e3d083483de TravisCI: enable osx builds
Chocobo1 <Chocobo1@users.noreply.github.com>
parents: 1242
diff changeset
8 matrix:
2e3d083483de TravisCI: enable osx builds
Chocobo1 <Chocobo1@users.noreply.github.com>
parents: 1242
diff changeset
9 - BUNDLEDLIBTOM=--disable-bundled-libtom WEXTRAFLAGS=-Werror
2e3d083483de TravisCI: enable osx builds
Chocobo1 <Chocobo1@users.noreply.github.com>
parents: 1242
diff changeset
10 - BUNDLEDLIBTOM=--enable-bundled-libtom
2e3d083483de TravisCI: enable osx builds
Chocobo1 <Chocobo1@users.noreply.github.com>
parents: 1242
diff changeset
11 - MULTI=1
2e3d083483de TravisCI: enable osx builds
Chocobo1 <Chocobo1@users.noreply.github.com>
parents: 1242
diff changeset
12 - NOWRITEV=1
2e3d083483de TravisCI: enable osx builds
Chocobo1 <Chocobo1@users.noreply.github.com>
parents: 1242
diff changeset
13
2e3d083483de TravisCI: enable osx builds
Chocobo1 <Chocobo1@users.noreply.github.com>
parents: 1242
diff changeset
14 # TODO: remove this section when libtomcrypt compiles on OSX: https://github.com/libtom/libtomcrypt/issues/82
2e3d083483de TravisCI: enable osx builds
Chocobo1 <Chocobo1@users.noreply.github.com>
parents: 1242
diff changeset
15 matrix:
2e3d083483de TravisCI: enable osx builds
Chocobo1 <Chocobo1@users.noreply.github.com>
parents: 1242
diff changeset
16 exclude:
2e3d083483de TravisCI: enable osx builds
Chocobo1 <Chocobo1@users.noreply.github.com>
parents: 1242
diff changeset
17 - os: osx
2e3d083483de TravisCI: enable osx builds
Chocobo1 <Chocobo1@users.noreply.github.com>
parents: 1242
diff changeset
18 env: BUNDLEDLIBTOM=--disable-bundled-libtom WEXTRAFLAGS=-Werror
2e3d083483de TravisCI: enable osx builds
Chocobo1 <Chocobo1@users.noreply.github.com>
parents: 1242
diff changeset
19 - os: osx
2e3d083483de TravisCI: enable osx builds
Chocobo1 <Chocobo1@users.noreply.github.com>
parents: 1242
diff changeset
20 env: MULTI=1
2e3d083483de TravisCI: enable osx builds
Chocobo1 <Chocobo1@users.noreply.github.com>
parents: 1242
diff changeset
21 - os: osx
2e3d083483de TravisCI: enable osx builds
Chocobo1 <Chocobo1@users.noreply.github.com>
parents: 1242
diff changeset
22 env: NOWRITEV=1
1240
87a43bf49e37 TravisCI: modify to run builds in container
Chocobo1 <Chocobo1@users.noreply.github.com>
parents: 1142
diff changeset
23
1242
53111b3413dc TravisCI: enable build with clang
Chocobo1 <Chocobo1@users.noreply.github.com>
parents: 1241
diff changeset
24 compiler:
53111b3413dc TravisCI: enable build with clang
Chocobo1 <Chocobo1@users.noreply.github.com>
parents: 1241
diff changeset
25 - gcc
53111b3413dc TravisCI: enable build with clang
Chocobo1 <Chocobo1@users.noreply.github.com>
parents: 1241
diff changeset
26 - clang
53111b3413dc TravisCI: enable build with clang
Chocobo1 <Chocobo1@users.noreply.github.com>
parents: 1241
diff changeset
27
1240
87a43bf49e37 TravisCI: modify to run builds in container
Chocobo1 <Chocobo1@users.noreply.github.com>
parents: 1142
diff changeset
28 # container-based builds
87a43bf49e37 TravisCI: modify to run builds in container
Chocobo1 <Chocobo1@users.noreply.github.com>
parents: 1142
diff changeset
29 sudo: false
87a43bf49e37 TravisCI: modify to run builds in container
Chocobo1 <Chocobo1@users.noreply.github.com>
parents: 1142
diff changeset
30 addons:
87a43bf49e37 TravisCI: modify to run builds in container
Chocobo1 <Chocobo1@users.noreply.github.com>
parents: 1142
diff changeset
31 apt:
87a43bf49e37 TravisCI: modify to run builds in container
Chocobo1 <Chocobo1@users.noreply.github.com>
parents: 1142
diff changeset
32 packages:
87a43bf49e37 TravisCI: modify to run builds in container
Chocobo1 <Chocobo1@users.noreply.github.com>
parents: 1142
diff changeset
33 # 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
34 - zlib1g-dev
87a43bf49e37 TravisCI: modify to run builds in container
Chocobo1 <Chocobo1@users.noreply.github.com>
parents: 1142
diff changeset
35 - libtomcrypt-dev
87a43bf49e37 TravisCI: modify to run builds in container
Chocobo1 <Chocobo1@users.noreply.github.com>
parents: 1142
diff changeset
36 - libtommath-dev
87a43bf49e37 TravisCI: modify to run builds in container
Chocobo1 <Chocobo1@users.noreply.github.com>
parents: 1142
diff changeset
37
1243
2e3d083483de TravisCI: enable osx builds
Chocobo1 <Chocobo1@users.noreply.github.com>
parents: 1242
diff changeset
38
2e3d083483de TravisCI: enable osx builds
Chocobo1 <Chocobo1@users.noreply.github.com>
parents: 1242
diff changeset
39 install:
2e3d083483de TravisCI: enable osx builds
Chocobo1 <Chocobo1@users.noreply.github.com>
parents: 1242
diff changeset
40 - if [ "$TRAVIS_OS_NAME" = "osx" -a "$BUNDLEDLIBTOM" != "--enable-bundled-libtom" ]; then brew update > /dev/null && brew install libtomcrypt libtommath ; fi
2e3d083483de TravisCI: enable osx builds
Chocobo1 <Chocobo1@users.noreply.github.com>
parents: 1242
diff changeset
41
1240
87a43bf49e37 TravisCI: modify to run builds in container
Chocobo1 <Chocobo1@users.noreply.github.com>
parents: 1142
diff changeset
42 script:
87a43bf49e37 TravisCI: modify to run builds in container
Chocobo1 <Chocobo1@users.noreply.github.com>
parents: 1142
diff changeset
43 - autoconf && autoheader && ./configure $BUNDLEDLIBTOM CFLAGS="-O2 -Wall -Wno-pointer-sign $WEXTRAFLAGS" --prefix=$HOME/inst
1082
3cb73e8d6122 fix travis more
Matt Johnston <matt@ucc.asn.au>
parents: 1081
diff changeset
44 - test "$NOWRITEV" && sed -i s/HAVE_WRITEV/DONT_HAVE_WRITEV/ config.h || true
1241
32270319e09c TravisCI: enable parallel build
Chocobo1 <Chocobo1@users.noreply.github.com>
parents: 1240
diff changeset
45 - make -j3 install
1240
87a43bf49e37 TravisCI: modify to run builds in container
Chocobo1 <Chocobo1@users.noreply.github.com>
parents: 1142
diff changeset
46
87a43bf49e37 TravisCI: modify to run builds in container
Chocobo1 <Chocobo1@users.noreply.github.com>
parents: 1142
diff changeset
47 after_success:
915
ca46fb43679d Add some tests for multi
Matt Johnston <matt@ucc.asn.au>
parents: 914
diff changeset
48 - ~/inst/bin/dropbearkey -t rsa -f testrsa
ca46fb43679d Add some tests for multi
Matt Johnston <matt@ucc.asn.au>
parents: 914
diff changeset
49 - ~/inst/bin/dropbearkey -t dss -f testdss
ca46fb43679d Add some tests for multi
Matt Johnston <matt@ucc.asn.au>
parents: 914
diff changeset
50 - ~/inst/bin/dropbearkey -t ecdsa -f testec256 -s 256
ca46fb43679d Add some tests for multi
Matt Johnston <matt@ucc.asn.au>
parents: 914
diff changeset
51 - ~/inst/bin/dropbearkey -t ecdsa -f testec384 -s 384
ca46fb43679d Add some tests for multi
Matt Johnston <matt@ucc.asn.au>
parents: 914
diff changeset
52 - ~/inst/bin/dropbearkey -t ecdsa -f testec521 -s 521