Refactor travis config to include dub build and ldc.
This commit is contained in:
parent
4d38a64c99
commit
933f9b4337
|
@ -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
|
19
.travis.yml
19
.travis.yml
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue