diff --git a/.travis.sh b/.travis.sh new file mode 100755 index 0000000..c720355 --- /dev/null +++ b/.travis.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +set -e + +dub build --build=release +git submodule update --init --recursive + +if [ $DC = ldc2 ]; then + make test DC=ldmd2 +else + make test +fi diff --git a/.travis.yml b/.travis.yml index d3ce18a..9d4fe7a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,11 @@ sudo: false language: d -script: - - git submodule update --init --recursive - - make test +d: + - dmd-beta + - dmd + - ldc +os: + - linux + - osx + +script: ./.travis.sh