Run tests with the actually selected configurations and fix the tested OS/config combinations.

This commit is contained in:
Sönke Ludwig 2017-01-22 21:41:09 +01:00
parent 619948c4d5
commit b8b993be90
No known key found for this signature in database
GPG key ID: D95E8DB493EE314C
2 changed files with 8 additions and 2 deletions

View file

@ -17,11 +17,17 @@ d:
env:
- CONFIG=select
- CONFIG=epoll
- CONFIG=kqueue
- CONFIG=libasync
matrix:
allow_failures:
- env: CONFIG=libasync
exclude:
- os: osx
env: CONFIG=epoll
- os: linux
env: CONFIG=kqueue
script: ./travis-ci.sh

View file

@ -15,7 +15,7 @@ dub test --compiler=$DC -c $CONFIG
if [ ${BUILD_EXAMPLE=1} -eq 1 ]; then
for ex in $(\ls -1 examples/*.d); do
echo "[INFO] Building example $ex"
dub build --compiler=$DC --single $ex # --override-config eventcore/$CONFIG
dub build --compiler=$DC --override-config eventcore/$CONFIG --single $ex
done
rm -rf examples/.dub/
rm examples/*-example
@ -23,6 +23,6 @@ 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 # --override-config eventcore/$CONFIG
dub --temp-build --compiler=$DC --override-config eventcore/$CONFIG --single $ex
done
fi