2016-12-08 14:43:50 +01:00
|
|
|
sudo: false
|
|
|
|
|
|
|
|
os:
|
2018-09-26 06:30:05 +02:00
|
|
|
- linux
|
|
|
|
- osx
|
2016-12-08 14:43:50 +01:00
|
|
|
|
|
|
|
language: d
|
|
|
|
|
|
|
|
d:
|
2018-09-26 06:30:05 +02:00
|
|
|
- dmd-2.082.0
|
|
|
|
- dmd-2.081.2
|
2016-12-08 14:43:50 +01:00
|
|
|
|
2018-04-11 21:21:30 +02:00
|
|
|
env:
|
2017-06-13 10:45:15 +02:00
|
|
|
matrix:
|
2018-09-26 06:30:05 +02:00
|
|
|
- ARCH=x86_64
|
|
|
|
- ARCH=x86
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- name: "D-Scanner"
|
|
|
|
d: dmd-2.082.0
|
|
|
|
env: DSCANNER=0.5.10
|
|
|
|
os: linux
|
2017-06-12 19:02:47 +02:00
|
|
|
|
|
|
|
addons:
|
2017-06-13 10:45:15 +02:00
|
|
|
apt:
|
|
|
|
packages:
|
2018-09-26 06:30:05 +02:00
|
|
|
- gcc-multilib
|
2017-06-12 19:02:47 +02:00
|
|
|
|
|
|
|
before_script:
|
2018-09-26 06:30:05 +02:00
|
|
|
- if [ "`$DC --version | head -n 1 | grep 'v2.082.0'`" ] &&
|
|
|
|
[ -z "$DSCANNER" ]; then
|
|
|
|
export UNITTEST="unittest-cov";
|
|
|
|
fi
|
2016-12-08 14:43:50 +01:00
|
|
|
|
|
|
|
script:
|
2018-09-26 06:30:05 +02:00
|
|
|
- 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
|
2017-05-11 13:11:12 +02:00
|
|
|
|
|
|
|
after_success:
|
2018-09-26 06:30:05 +02:00
|
|
|
- test "$UNITTEST" && bash <(curl -s https://codecov.io/bash)
|