Merge pull request #278 from skl131313/travis-dub
Refactor travis config to include dub, osx, and ldc.
This commit is contained in:
commit
b7c3a3686b
|
@ -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
|
17
.travis.yml
17
.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
|
||||
|
|
Loading…
Reference in New Issue