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:
|
2019-02-11 22:14:59 +01:00
|
|
|
- dmd-2.084.1
|
2018-12-17 18:04:36 +01:00
|
|
|
- dmd-2.083.1
|
2018-10-12 19:57:49 +02:00
|
|
|
- dmd-2.082.1
|
2016-12-08 14:43:50 +01:00
|
|
|
|
2018-04-11 21:21:30 +02:00
|
|
|
env:
|
2018-10-30 12:39:10 +01:00
|
|
|
global:
|
2019-02-11 22:14:59 +01:00
|
|
|
- LATEST=2.084.1
|
2018-10-30 12:39:10 +01:00
|
|
|
|
2017-06-13 10:45:15 +02:00
|
|
|
matrix:
|
2018-09-26 06:30:05 +02:00
|
|
|
- ARCH=x86_64
|
|
|
|
- ARCH=x86
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
2018-10-30 12:39:10 +01:00
|
|
|
- name: D-Scanner
|
|
|
|
d: dmd-$LATEST
|
2019-03-17 10:56:44 +01:00
|
|
|
env: DSCANNER=0.7.0
|
2018-09-26 06:30:05 +02:00
|
|
|
os: linux
|
2018-10-30 12:39:10 +01:00
|
|
|
- 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
|
2019-03-17 10:56:44 +01:00
|
|
|
env: DSCANNER=0.7.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:
|
2018-09-26 06:30:05 +02:00
|
|
|
- gcc-multilib
|
2017-06-12 19:02:47 +02:00
|
|
|
|
|
|
|
before_script:
|
2018-10-30 12:39:10 +01:00
|
|
|
- if [ "`$DC --version | head -n 1 | grep v$LATEST`" ] &&
|
|
|
|
[ -z "$DSCANNER$DDOC" ]; then
|
2018-09-26 06:30:05 +02:00
|
|
|
export UNITTEST="unittest-cov";
|
|
|
|
fi
|
2016-12-08 14:43:50 +01:00
|
|
|
|
|
|
|
script:
|
2019-03-05 20:25:26 +01:00
|
|
|
- set -e;
|
|
|
|
if [ -n "$DDOC" ]; then
|
2019-03-02 08:01:58 +01:00
|
|
|
dub build :meta -b ddox --compiler=$DC;
|
2019-03-05 20:25:26 +01:00
|
|
|
dub build :sys -b ddox --compiler=$DC;
|
|
|
|
dub build :os -b ddox --compiler=$DC;
|
|
|
|
dub build :encoding -b ddox --compiler=$DC;
|
2019-03-18 13:03:52 +01:00
|
|
|
dub build :middle -b ddox --compiler=$DC;
|
|
|
|
dub build :test -b ddox --compiler=$DC;
|
2018-10-30 12:39:10 +01:00
|
|
|
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;
|
2019-03-05 20:25:26 +01:00
|
|
|
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;
|
2019-03-18 13:03:52 +01:00
|
|
|
dub test :middle -b ${UNITTEST:-unittest} --arch=$ARCH --compiler=$DC;
|
|
|
|
dub test :test -b ${UNITTEST:-unittest} --arch=$ARCH --compiler=$DC;
|
2018-09-26 06:30:05 +02:00
|
|
|
dub test -b ${UNITTEST:-unittest} --arch=$ARCH --compiler=$DC;
|
|
|
|
else
|
|
|
|
dub fetch dscanner --version=$DSCANNER;
|
|
|
|
|
2019-03-18 13:03:52 +01:00
|
|
|
FILES=$(find */tanya -type f);
|
2018-09-26 06:30:05 +02:00
|
|
|
dub run dscanner -- --styleCheck $FILES;
|
|
|
|
fi
|
2017-05-11 13:11:12 +02:00
|
|
|
|
|
|
|
after_success:
|
2019-03-05 20:25:26 +01:00
|
|
|
- test "$UNITTEST" && bash <(curl -s https://codecov.io/bash) || true
|