Create separate travis job for D-Scanner
This commit is contained in:
parent
fd133554f3
commit
349e6dfede
22
.travis.yml
22
.travis.yml
@ -15,22 +15,32 @@ env:
|
||||
- ARCH=x86_64
|
||||
- ARCH=x86
|
||||
|
||||
matrix:
|
||||
include:
|
||||
- name: "D-Scanner"
|
||||
d: dmd-2.082.0
|
||||
env: DSCANNER=0.5.10
|
||||
os: linux
|
||||
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
- gcc-multilib
|
||||
|
||||
before_script:
|
||||
- if [ "`$DC --version | head -n 1 | grep 'v2.082.0'`" ]; then
|
||||
- if [ "`$DC --version | head -n 1 | grep 'v2.082.0'`" ] &&
|
||||
[ -z "$DSCANNER" ]; then
|
||||
export UNITTEST="unittest-cov";
|
||||
fi
|
||||
|
||||
script:
|
||||
- dub test -b ${UNITTEST:-unittest} --arch=$ARCH --compiler=$DC
|
||||
- if [ "$UNITTEST" ] && [ "$ARCH" = "x86_64" ] && [ "$TRAVIS_OS_NAME" = "linux" ];
|
||||
then
|
||||
dub fetch dscanner --version=0.5.10;
|
||||
dub run dscanner -- --styleCheck ./source/;
|
||||
- if [ -z "$DSCANNER" ]; then
|
||||
dub test -b ${UNITTEST:-unittest} --arch=$ARCH --compiler=$DC;
|
||||
else
|
||||
dub fetch dscanner --version=$DSCANNER;
|
||||
|
||||
FILES=$(find source -type f);
|
||||
dub run dscanner -- --styleCheck $FILES;
|
||||
fi
|
||||
|
||||
after_success:
|
||||
|
Loading…
Reference in New Issue
Block a user