Skip to content

Commit

Permalink
Proper Travis usage
Browse files Browse the repository at this point in the history
- YAML indents
- Using build matrix
  • Loading branch information
szepeviktor authored Dec 30, 2017
1 parent 197f471 commit 1e98e4a
Showing 1 changed file with 26 additions and 31 deletions.
57 changes: 26 additions & 31 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,30 @@
language: c

branches:
only:
- master

compiler:
- clang
- gcc
- clang
- gcc

env:
- CONFIGURE_OPTIONS=""
- CONFIGURE_OPTIONS="--enable-geoip=legacy --enable-utf8"
- CONFIGURE_OPTIONS="--enable-geoip=legacy --enable-utf8 --enable-tcb=btree --disable-bzip --disable-zlib"
- CONFIGURE_OPTIONS="--enable-geoip=legacy --enable-utf8 --enable-tcb=memhash --disable-bzip --disable-zlib"
- CONFIGURE_OPTIONS="--enable-tcb=memhash --disable-bzip --disable-zlib"
- CONFIGURE_OPTIONS="--enable-tcb=btree --disable-bzip --disable-zlib"

before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq libglib2.0-dev libncurses5-dev libgeoip-dev autoconf autotools-dev libtokyocabinet-dev gettext autopoint
- sudo apt-get update -qq
- sudo apt-get install -qq libglib2.0-dev libncurses5-dev libgeoip-dev autoconf autotools-dev libtokyocabinet-dev gettext autopoint

install:
- autoreconf -fiv
- ./configure
- make
- make distclean
- autoreconf -fiv
- ./configure --enable-geoip=legacy --enable-utf8
- make
- make distclean
- autoreconf -fiv
- ./configure --enable-geoip=legacy --enable-utf8 --enable-tcb=btree --disable-bzip --disable-zlib
- make
- make distclean
- autoreconf -fiv
- ./configure --enable-geoip=legacy --enable-utf8 --enable-tcb=memhash --disable-bzip --disable-zlib
- make
- make distclean
- autoreconf -fiv
- ./configure --enable-tcb=memhash --disable-bzip --disable-zlib
- make
- make distclean
- autoreconf -fiv
- ./configure --enable-tcb=btree --disable-bzip --disable-zlib
- make
branches:
only:
- master
script: "echo done"
- autoreconf -fiv
- ./configure $CONFIGURE_OPTIONS
- make
- sudo make install

script:
- echo "Sorry, no tests."

0 comments on commit 1e98e4a

Please sign in to comment.