From 003331cc90f875e02c75bf6b329c634ac86f5237 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Mon, 19 Dec 2016 22:37:18 +0100 Subject: [PATCH] Test with all Linux eventcore configurations. --- .travis.yml | 9 +++++++++ dub.sdl | 20 +++++++++++++++++--- travis-ci.sh | 9 +++++---- 3 files changed, 31 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8617453..2c55895 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,6 +11,15 @@ d: - ldc-1.1.0-beta6 - dmd-2.071.2 +env: + - CONFIG=select + - CONFIG=epoll + - CONFIG=libasync + +matrix: + allow_failures: + - env: CONFIG=libasync + script: ./travis-ci.sh sudo: false diff --git a/dub.sdl b/dub.sdl index d0d5baa..5224374 100644 --- a/dub.sdl +++ b/dub.sdl @@ -6,10 +6,24 @@ license "MIT" dependency "eventcore" version="~>0.5.0" -//subConfiguration "eventcore" "libasync" - mainSourceFile "source/vibe/appmain.d" -configuration "unittest" { +configuration "winapi" { + subConfiguration "eventcore" "winapi" +} +configuration "epoll" { + subConfiguration "eventcore" "epoll" +} +configuration "kqueue" { + subConfiguration "eventcore" "kqueue" +} +configuration "select" { + subConfiguration "eventcore" "select" +} +configuration "libasync" { + subConfiguration "eventcore" "libasync" +} + +buildType "unittest" { debugVersions "VibeMutexLog" "VibeAsyncLog" } diff --git a/travis-ci.sh b/travis-ci.sh index 586d131..d816449 100755 --- a/travis-ci.sh +++ b/travis-ci.sh @@ -3,24 +3,25 @@ set -e -x -o pipefail # test for successful release build -dub build --combined -b release --compiler=$DC +dub build -b release --compiler=$DC -c $CONFIG # test for successful 32-bit build if [ "$DC" == "dmd" ]; then - dub build --combined --arch=x86 + dub build --arch=x86 -c $CONFIG fi -dub test --combined --compiler=$DC +dub test --compiler=$DC -c $CONFIG if [ ${BUILD_EXAMPLE=1} -eq 1 ]; then for ex in $(\ls -1 examples/); do echo "[INFO] Building example $ex" + # --override-config vibe-core/$CONFIG (cd examples/$ex && dub build --compiler=$DC && dub clean) done fi if [ ${RUN_TEST=1} -eq 1 ]; then for ex in `\ls -1 tests/*.d`; do echo "[INFO] Running test $ex" - dub --temp-build --compiler=$DC --single $ex + dub --temp-build --compiler=$DC --single $ex # --override-config vibe-core/$CONFIG done fi