From 5ba6d35a1b146c206602704369a1c6ba18a0152a Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Mon, 3 Sep 2018 09:55:19 +0200 Subject: [PATCH] Use fixed dscanner version --- .travis.yml | 5 +++-- README.md | 7 ++++--- appveyor.yml | 6 ++++++ source/tanya/range/primitive.d | 11 ----------- 4 files changed, 13 insertions(+), 16 deletions(-) diff --git a/.travis.yml b/.travis.yml index 24930cb..e646a53 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,7 @@ os: language: d d: + - dmd-2.082.0 - dmd-2.081.2 env: @@ -20,7 +21,7 @@ addons: - gcc-multilib before_script: - - if [ "`$DC --version | head -n 1 | grep 'v2.081.2'`" ]; then + - if [ "`$DC --version | head -n 1 | grep 'v2.082.0'`" ]; then export UNITTEST="unittest-cov"; fi @@ -28,7 +29,7 @@ script: - dub test -b ${UNITTEST:-unittest} --arch=$ARCH --compiler=$DC - if [ "$UNITTEST" ] && [ "$ARCH" = "x86_64" ] && [ "$TRAVIS_OS_NAME" = "linux" ]; then - dub fetch dscanner; + dub fetch dscanner --version=0.5.10; dub run dscanner -- --styleCheck ./source/; fi diff --git a/README.md b/README.md index 8d242fa..61376bc 100644 --- a/README.md +++ b/README.md @@ -172,9 +172,10 @@ parameter is used) ### Supported compilers -| DMD | GCC | -|:-------:|:---------:| -| 2.081.2 | *master* | +| DMD | GCC | +|:-------:|:------:| +| 2.082.0 | gdc-8 | +| 2.081.2 | gdc-7 | ### Release management diff --git a/appveyor.yml b/appveyor.yml index 5947129..ee2d487 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -3,6 +3,12 @@ os: Visual Studio 2015 environment: matrix: + - DC: dmd + DVersion: 2.082.0 + arch: x64 + - DC: dmd + DVersion: 2.082.0 + arch: x86 - DC: dmd DVersion: 2.081.2 arch: x64 diff --git a/source/tanya/range/primitive.d b/source/tanya/range/primitive.d index 72824a5..1b3b96b 100644 --- a/source/tanya/range/primitive.d +++ b/source/tanya/range/primitive.d @@ -909,17 +909,6 @@ void put(R, E)(ref R range, auto ref E e) assert(oc.e == 2); } -/// -@nogc nothrow pure @safe unittest -{ - int[2] actual; - int[2] expected = [2, 3]; - auto slice = actual[]; - - put(slice, expected[]); - assert(actual == expected); -} - /** * Determines whether $(D_PARAM R) is an output range for the elemens of type * $(D_PARAM E).