Create separate travis job for D-Scanner
This commit is contained in:
parent
fd133554f3
commit
349e6dfede
32
.travis.yml
32
.travis.yml
@ -1,37 +1,47 @@
|
|||||||
sudo: false
|
sudo: false
|
||||||
|
|
||||||
os:
|
os:
|
||||||
- linux
|
- linux
|
||||||
- osx
|
- osx
|
||||||
|
|
||||||
language: d
|
language: d
|
||||||
|
|
||||||
d:
|
d:
|
||||||
- dmd-2.082.0
|
- dmd-2.082.0
|
||||||
- dmd-2.081.2
|
- dmd-2.081.2
|
||||||
|
|
||||||
env:
|
env:
|
||||||
matrix:
|
matrix:
|
||||||
- ARCH=x86_64
|
- ARCH=x86_64
|
||||||
- ARCH=x86
|
- ARCH=x86
|
||||||
|
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- name: "D-Scanner"
|
||||||
|
d: dmd-2.082.0
|
||||||
|
env: DSCANNER=0.5.10
|
||||||
|
os: linux
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
packages:
|
packages:
|
||||||
- gcc-multilib
|
- gcc-multilib
|
||||||
|
|
||||||
before_script:
|
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";
|
export UNITTEST="unittest-cov";
|
||||||
fi
|
fi
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- dub test -b ${UNITTEST:-unittest} --arch=$ARCH --compiler=$DC
|
- if [ -z "$DSCANNER" ]; then
|
||||||
- if [ "$UNITTEST" ] && [ "$ARCH" = "x86_64" ] && [ "$TRAVIS_OS_NAME" = "linux" ];
|
dub test -b ${UNITTEST:-unittest} --arch=$ARCH --compiler=$DC;
|
||||||
then
|
else
|
||||||
dub fetch dscanner --version=0.5.10;
|
dub fetch dscanner --version=$DSCANNER;
|
||||||
dub run dscanner -- --styleCheck ./source/;
|
|
||||||
|
FILES=$(find source -type f);
|
||||||
|
dub run dscanner -- --styleCheck $FILES;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- test "$UNITTEST" && bash <(curl -s https://codecov.io/bash)
|
- test "$UNITTEST" && bash <(curl -s https://codecov.io/bash)
|
||||||
|
Loading…
Reference in New Issue
Block a user