tanya/.travis.yml

40 lines
674 B
YAML
Raw Normal View History

sudo: false
os:
2017-06-13 10:45:15 +02:00
- linux
- osx
language: d
d:
2018-05-05 05:15:58 +02:00
- dmd-2.080.0
2018-04-14 16:19:23 +02:00
- dmd-2.079.1
2018-02-16 16:35:53 +01:00
- dmd-2.078.3
2017-12-02 10:40:40 +01:00
- dmd-2.077.1
env:
2017-06-13 10:45:15 +02:00
matrix:
- ARCH=x86_64
- ARCH=x86
2017-06-12 19:02:47 +02:00
addons:
2017-06-13 10:45:15 +02:00
apt:
packages:
- gcc-multilib
2017-06-12 19:02:47 +02:00
before_script:
2018-05-05 05:15:58 +02:00
- if [ "`$DC --version | head -n 1 | grep 'v2.080.0'`" ]; then
2017-06-13 10:45:15 +02:00
export UNITTEST="unittest-cov";
fi
script:
2017-06-13 10:45:15 +02:00
- 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
2017-05-11 13:11:12 +02:00
after_success:
- test "$UNITTEST" && bash <(curl -s https://codecov.io/bash)