Travis: Use sudo-less infrastructure, and add simple Win32/64 builds

This commit is contained in:
Luke Dashjr
2016-02-10 04:54:08 +00:00
parent e28341c60e
commit ae5fe61864

View File

@@ -1,13 +1,38 @@
os: linux os: linux
language: c language: c
compiler: gcc compiler: gcc
sudo: required sudo: false
matrix: matrix:
include: include:
- compiler: ": Complete" - compiler: ": Complete"
env: CONFIGURE_OPTS="--enable-tool" PACKAGES="build-essential libgcrypt-dev" MAKE_CHECK=1 env: CONFIGURE_OPTS="--enable-tool --enable-static --enable-shared" MAKE_CHECK=1
- compiler: ": No tools/tests" addons:
env: CONFIGURE_OPTS="--disable-tool" PACKAGES="build-essential" apt:
packages:
- build-essential
- libgcrypt11-dev
- compiler: ": No tool/tests"
env: CONFIGURE_OPTS="--disable-tool --enable-static --enable-shared"
addons:
apt:
packages:
- build-essential
- compiler: ": Win32 - No tool/tests"
env: CONFIGURE_OPTS="--disable-tool --host=i686-w64-mingw32 --enable-static --enable-shared"
addons:
apt:
packages:
- gcc-mingw-w64-i686
- binutils-mingw-w64-i686
- mingw-w64-dev
- compiler: ": Win64 - No tool/tests"
env: CONFIGURE_OPTS="--disable-tool --host=x86_64-w64-mingw32 --enable-static --enable-shared"
addons:
apt:
packages:
- gcc-mingw-w64-x86-64
- binutils-mingw-w64-x86-64
- mingw-w64-dev
exclude: exclude:
- compiler: gcc - compiler: gcc
install: install:
@@ -19,3 +44,5 @@ script:
- ./configure $CONFIGURE_OPTS || tail -n 1000 config.log - ./configure $CONFIGURE_OPTS || tail -n 1000 config.log
- make - make
- test -z "$MAKE_CHECK" || make check - test -z "$MAKE_CHECK" || make check
- make install DESTDIR=$PWD/ii
- cd ii && find