language: d

d:
  - dmd-2.067.0-b2
  - dmd-2.065.0
  - dmd-2.066.1
  - ldc-0.14.0
  - ldc-0.15.1
  - gdc-4.9.0

script:
  - dub test --compiler=$DC
  - for ex in `\ls -1 examples/`; do (echo "[INFO] Building example $ex"; cd examples/$ex && dub build --compiler=$DC) || exit 1; done
  - for ex in `\ls -1 tests/`; do (echo "[INFO] Running test $ex"; cd tests/$ex && dub --compiler=$DC) || exit 1; done

services:
  - mongodb
  - redis-server

sudo: false

language: d

d:
  - dmd-2.067.0-b2
  - dmd-2.065.0
  - dmd-2.066.1
  - ldc-0.14.0
  - ldc-0.15.1
  - gdc-4.9.0

env:
  - VIBED_DRIVER=libevent
  - VIBED_DRIVER=libev
  - VIBED_DRIVER=libasync

script:
  - dub test --compiler=$DC --config=${VIBED_DRIVER} || exit 1
  - if [ ${VIBED_DRIVER} == "libevent" ]; then
      for ex in `\ls -1 examples/`; do (echo "[INFO] Building example $ex"; cd examples/$ex && dub build --compiler=$DC) || exit 1; done
    fi
  - if [ ${VIBED_DRIVER} == "libevent" ]; then
      for ex in `\ls -1 tests/`; do (echo "[INFO] Running test $ex"; cd tests/$ex && dub --compiler=$DC) || exit 1; done
    fi


services:
  - mongodb
  - redis-server

sudo: false

Test libev drivers and libasync drivers as well in addition of libevent
Test libev drivers and libasync drivers as well in addition of libevent
