Test with all Linux eventcore configurations.

This commit is contained in:
Sönke Ludwig 2016-12-19 22:37:18 +01:00
parent a046a59b16
commit 003331cc90
3 changed files with 31 additions and 7 deletions

View file

@ -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

20
dub.sdl
View file

@ -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"
}

View file

@ -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