diff --git a/.travis.sh b/.travis.sh new file mode 100755 index 0000000..3812c45 --- /dev/null +++ b/.travis.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +set -e + +if [[ $BUILD == dub ]]; then + dub build --build=release + + mkdir bin + mv dfmt ./bin +elif [[ $DC == ldc2 ]]; then + git submodule update --init --recursive + make ldc -j2 +else + git submodule update --init --recursive + make debug -j2 +fi + +cd tests && ./test.sh diff --git a/.travis.yml b/.travis.yml index 9c05d2c..fc361b6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,16 @@ +sudo: false language: d -script: - - git submodule update --init --recursive && make test +d: + - dmd-beta + - dmd + - ldc + +os: + - linux + - osx + +env: + - BUILD= + - BUILD=dub + +script: ./.travis.sh