tanya/.travis.yml

38 lines
669 B
YAML
Raw Normal View History

sudo: false
os:
2017-06-13 10:45:15 +02:00
- linux
- osx
language: d
d:
2017-06-13 10:45:15 +02:00
- dmd-2.074.1
- dmd-2.073.2
- dmd-2.072.2
- dmd-2.071.2
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:
2017-06-13 10:45:15 +02:00
- if [ "$PS1" = '(dmd-2.074.1)' ]; then
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" = "unittest-cov" -a "$ARCH" = "x86_64" -a "$TRAVIS_OS_NAME" = "linux" ]; then
dub fetch dscanner && dub run dscanner -- -Isource --styleCheck;
fi
2017-05-11 13:11:12 +02:00
after_success:
2017-06-13 10:45:15 +02:00
- test "$UNITTEST" = "unittest-cov" && bash <(curl -s https://codecov.io/bash)