Skip to content

Commit 8abfe38

Browse files
committed
.travis.yml: Try to support additional builds.
Add support for building with and without libglib.
1 parent aeadf44 commit 8abfe38

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.travis.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,14 @@ before_install:
44
- sudo apt-get install -qq check
55
- wget -q -O /tmp/libsodium.deb http://download.dnscrypt.org/libsodium/releases/libsodium_0.3+fpm0_amd64.deb
66
- sudo dpkg -i /tmp/libsodium.deb
7-
script: ./autogen.sh && ./configure && make check
7+
env:
8+
- USE_LIBGLIB=no
9+
- USE_LIBGLIB=yes
10+
before_script:
11+
- ./autogen.sh
12+
- sh -c '[ "$USE_LIBGLIB" = "yes" ] && ./configure --with-libglib CFLAGS="-Werror"'
13+
- sh -c '[ "$USE_LIBGLIB" = "no" ] && ./configure --without-libglib CFLAGS="-Werror"'
14+
script: make check
815
compiler:
916
- clang
1017
- gcc

0 commit comments

Comments
 (0)