Test with all Linux eventcore configurations.
This commit is contained in:
parent
a046a59b16
commit
003331cc90
|
@ -11,6 +11,15 @@ d:
|
||||||
- ldc-1.1.0-beta6
|
- ldc-1.1.0-beta6
|
||||||
- dmd-2.071.2
|
- dmd-2.071.2
|
||||||
|
|
||||||
|
env:
|
||||||
|
- CONFIG=select
|
||||||
|
- CONFIG=epoll
|
||||||
|
- CONFIG=libasync
|
||||||
|
|
||||||
|
matrix:
|
||||||
|
allow_failures:
|
||||||
|
- env: CONFIG=libasync
|
||||||
|
|
||||||
script: ./travis-ci.sh
|
script: ./travis-ci.sh
|
||||||
|
|
||||||
sudo: false
|
sudo: false
|
||||||
|
|
20
dub.sdl
20
dub.sdl
|
@ -6,10 +6,24 @@ license "MIT"
|
||||||
|
|
||||||
dependency "eventcore" version="~>0.5.0"
|
dependency "eventcore" version="~>0.5.0"
|
||||||
|
|
||||||
//subConfiguration "eventcore" "libasync"
|
|
||||||
|
|
||||||
mainSourceFile "source/vibe/appmain.d"
|
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"
|
debugVersions "VibeMutexLog" "VibeAsyncLog"
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,24 +3,25 @@
|
||||||
set -e -x -o pipefail
|
set -e -x -o pipefail
|
||||||
|
|
||||||
# test for successful release build
|
# 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
|
# test for successful 32-bit build
|
||||||
if [ "$DC" == "dmd" ]; then
|
if [ "$DC" == "dmd" ]; then
|
||||||
dub build --combined --arch=x86
|
dub build --arch=x86 -c $CONFIG
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dub test --combined --compiler=$DC
|
dub test --compiler=$DC -c $CONFIG
|
||||||
|
|
||||||
if [ ${BUILD_EXAMPLE=1} -eq 1 ]; then
|
if [ ${BUILD_EXAMPLE=1} -eq 1 ]; then
|
||||||
for ex in $(\ls -1 examples/); do
|
for ex in $(\ls -1 examples/); do
|
||||||
echo "[INFO] Building example $ex"
|
echo "[INFO] Building example $ex"
|
||||||
|
# --override-config vibe-core/$CONFIG
|
||||||
(cd examples/$ex && dub build --compiler=$DC && dub clean)
|
(cd examples/$ex && dub build --compiler=$DC && dub clean)
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
if [ ${RUN_TEST=1} -eq 1 ]; then
|
if [ ${RUN_TEST=1} -eq 1 ]; then
|
||||||
for ex in `\ls -1 tests/*.d`; do
|
for ex in `\ls -1 tests/*.d`; do
|
||||||
echo "[INFO] Running test $ex"
|
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
|
done
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue