tanya/.travis.yml

70 lines
1.6 KiB
YAML
Raw Permalink Normal View History

sudo: false
os:
- linux
- osx
language: d
d:
- dmd-2.085.0
2019-03-23 06:41:51 +01:00
- dmd-2.081.2
env:
global:
- LATEST=2.085.0
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.7.0
os: linux
- name: DDoc
d: dmd-$LATEST
env: DDOC=true
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:
- set -e;
if [ -n "$DDOC" ]; then
2019-03-02 08:01:58 +01:00
dub build :meta -b ddox --compiler=$DC;
dub build :sys -b ddox --compiler=$DC;
dub build :os -b ddox --compiler=$DC;
dub build :encoding -b ddox --compiler=$DC;
dub build :middle -b ddox --compiler=$DC;
dub build :test -b ddox --compiler=$DC;
dub build -b ddox --compiler=$DC;
elif [ -z "$DSCANNER" ]; then
2019-03-02 08:01:58 +01:00
dub test :meta -b ${UNITTEST:-unittest} --arch=$ARCH --compiler=$DC;
dub test :sys -b ${UNITTEST:-unittest} --arch=$ARCH --compiler=$DC;
dub test :os -b ${UNITTEST:-unittest} --arch=$ARCH --compiler=$DC;
dub test :encoding -b ${UNITTEST:-unittest} --arch=$ARCH --compiler=$DC;
dub test :middle -b ${UNITTEST:-unittest} --arch=$ARCH --compiler=$DC;
dub test :test -b ${UNITTEST:-unittest} --arch=$ARCH --compiler=$DC;
dub test -b ${UNITTEST:-unittest} --arch=$ARCH --compiler=$DC;
else
dub fetch dscanner --version=$DSCANNER;
FILES=$(find */tanya -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) || true