sudo: false os: - linux - osx language: d d: - dmd-2.082.1 env: matrix: - ARCH=x86_64 - ARCH=x86 matrix: include: - name: "D-Scanner" d: dmd-2.082.1 env: DSCANNER=0.5.11 os: linux addons: apt: packages: - gcc-multilib before_script: - if [ "`$DC --version | head -n 1 | grep 'v2.082.1'`" ] && [ -z "$DSCANNER" ]; then export UNITTEST="unittest-cov"; fi script: - 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: - test "$UNITTEST" && bash <(curl -s https://codecov.io/bash)