tanya/.travis.yml

63 lines
1009 B
YAML
Raw Permalink Normal View History

sudo: false
os:
- linux
- osx
language: d
d:
2019-02-11 22:14:59 +01:00
- dmd-2.084.1
2018-12-17 18:04:36 +01:00
- dmd-2.083.1
- dmd-2.082.1
env:
global:
2019-02-11 22:14:59 +01:00
- LATEST=2.084.1
2017-06-13 10:45:15 +02:00
matrix:
- ARCH=x86_64
- ARCH=x86
matrix:
include:
- name: D-Scanner
d: dmd-$LATEST
env: DSCANNER=0.6.0
os: linux
- name: DDoc
d: dmd-$LATEST
env: DDOC=true
os: linux
2019-01-31 06:14:09 +01:00
allow_failures:
- name: D-Scanner
d: dmd-$LATEST
env: DSCANNER=0.6.0
2019-01-31 06:14:09 +01:00
os: linux
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:
- if [ "`$DC --version | head -n 1 | grep v$LATEST`" ] &&
[ -z "$DSCANNER$DDOC" ]; then
export UNITTEST="unittest-cov";
fi
script:
- if [ -n "$DDOC" ]; then
dub build -b ddox --compiler=$DC;
elif [ -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:
- test "$UNITTEST" && bash <(curl -s https://codecov.io/bash)