summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2018-04-11 21:21:30 +0200
committerEugen Wissner <belka@caraus.de>2018-04-12 17:14:22 +0200
commitddb02e41ebc9470c183ccb0d4a256a4eb2f14968 (patch)
treee00385f8f0cd06ce697eb41b9fc2f126e83f59e8 /.travis.yml
parentd157e88b7afa397270faf2de84dc90187c6ec2e8 (diff)
downloadtanya-ddb02e41ebc9470c183ccb0d4a256a4eb2f14968.tar.gz
Add dscanner style check to CI
Fix #38.
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml12
1 files changed, 8 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml
index b54bb9b..242a5f2 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -10,9 +10,8 @@ d:
- dmd-2.079.0
- dmd-2.078.3
- dmd-2.077.1
- - dmd-2.076.1
-env:
+env:
matrix:
- ARCH=x86_64
- ARCH=x86
@@ -23,12 +22,17 @@ addons:
- gcc-multilib
before_script:
- - if [ "$PS1" = '(dmd-2.079.0)' ]; then
+ - if [ "`$DC --version | head -n 1 | grep 'v2.079.0'`" ]; 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;
+ dub run dscanner -- --styleCheck ./source/;
+ fi
after_success:
- - test "$UNITTEST" = "unittest-cov" && bash <(curl -s https://codecov.io/bash)
+ - test "$UNITTEST" && bash <(curl -s https://codecov.io/bash)