Refactor travis config to include dub build and ldc.

This commit is contained in:
skl131313 2017-05-13 20:28:13 -04:00
parent 4d38a64c99
commit 933f9b4337
2 changed files with 36 additions and 4 deletions

21
.travis.sh Executable file
View File

@ -0,0 +1,21 @@
#!/bin/bash
set -e
if [[ $BUILD == dub ]]; then
mkdir bin
dub build --build=release --config=client
dub build --build=release --config=server
mv dcd-client ./bin
mv dcd-server ./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 && ./run_tests.sh

View File

@ -1,6 +1,17 @@
sudo: false
language: d
script:
- git submodule update --init --recursive
- make debug -j2
- cd tests && ./run_tests.sh
d:
- dmd-beta
- dmd
- ldc
os:
- linux
# TODO, some bug in OSX for the server that causes it to fail
# - osx
env:
- BUILD=
- BUILD=dub
script: ./.travis.sh