From 6b1c26eec6bc855bd0e4fa0ff2bc8a270b0a3c7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Fri, 22 May 2020 20:58:12 +0200 Subject: [PATCH 1/5] Add "cfrunloop" configuration for macOS. Also requires at least eventcore 0.9.2 to work. --- dub.sdl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dub.sdl b/dub.sdl index 462843c..6ec6e75 100644 --- a/dub.sdl +++ b/dub.sdl @@ -4,7 +4,7 @@ authors "Sönke Ludwig" copyright "Copyright © 2016-2020, Sönke Ludwig" license "MIT" -dependency "eventcore" version="~>0.9.0" +dependency "eventcore" version="~>0.9.2" dependency "stdx-allocator" version="~>2.77.0" targetName "vibe_core" @@ -20,6 +20,9 @@ configuration "winapi-optlink" { configuration "epoll" { subConfiguration "eventcore" "epoll" } +configuration "cfrunloop" { + subConfiguration "eventcore" "cfrunloop" +} configuration "kqueue" { subConfiguration "eventcore" "kqueue" } From bc2e3c42bf6fcaaab3fca88097476243e2bd1d09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Sun, 24 May 2020 10:29:19 +0200 Subject: [PATCH 2/5] Update tested compiler range. --- .travis.yml | 7 ++++--- appveyor.yml | 23 ++++++++++------------- 2 files changed, 14 insertions(+), 16 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0920fb6..3771453 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,12 +9,13 @@ d: # this way the overall test time gets cut down (GDC/LDC are a lot # slower tham DMD, so they should be started early), while still # catching most DMD version related build failures early - - dmd-2.091.0,dub + - dmd-2.092.0,dub - dmd-2.078.3,dub - - ldc-1.20.1,dub + - ldc-1.21.0,dub - ldc-1.15.0,dub + - ldc-1.20.1,dub - ldc-1.19.0,dub - - ldc-1.18.0,dub + - dmd-2.091.1,dub - dmd-2.089.1,dub - dmd-2.088.1,dub - dmd-nightly,dub diff --git a/appveyor.yml b/appveyor.yml index 3e265e5..8d985a3 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -2,17 +2,17 @@ platform: x64 environment: matrix: - DC: dmd - DVersion: 2.088.0 + DVersion: 2.092.0 arch: x64 - DC: dmd - DVersion: 2.087.1 - arch: x64 - - DC: dmd - DVersion: 2.087.1 + DVersion: 2.092.0 arch: x86 - DC: dmd - DVersion: 2.087.1 + DVersion: 2.092.0 arch: x86_mscoff + - DC: dmd + DVersion: 2.091.1 + arch: x64 - DC: dmd DVersion: 2.086.1 arch: x64 @@ -23,7 +23,10 @@ environment: DVersion: 2.079.0 arch: x86_mscoff - DC: ldc - DVersion: 1.17.0 + DVersion: 1.21.0 + arch: x64 + - DC: ldc + DVersion: 1.20.1 arch: x64 - DC: ldc DVersion: 1.16.0 @@ -31,12 +34,6 @@ environment: - DC: ldc DVersion: 1.15.0 arch: x64 - - DC: ldc - DVersion: 1.14.0 - arch: x64 - - DC: ldc - DVersion: 1.9.0 - arch: x64 skip_tags: false From 4f57a98130bd5b4ea7f0f7bdc57bb965b521563d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Sun, 24 May 2020 10:29:27 +0200 Subject: [PATCH 3/5] Update change log. --- CHANGELOG.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 49afee8..d1207a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,15 @@ +1.9.2 - 2020-05- +================== + +- Updated tested compiler range to DMD 2.078.3-2.092.0 and LDC 1.15.0-1.21.0 +- Added support for a `CFRunLoop` based configuration on macOS to enable efficient UI integration - [pull #211][issue211] +- Removed potentially blocking file I/O code - [pull #210][issue210] +- Added error handling for process creation - [pull #210][issue210] + +[issue210]: https://github.com/vibe-d/vibe-core/issues/210 +[issue211]: https://github.com/vibe-d/vibe-core/issues/211 + + 1.9.1 - 2020-03-18 ================== From 5333e4a1911e9ddb8872e1918b2362c54d5173f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Mon, 25 May 2020 11:37:33 +0200 Subject: [PATCH 4/5] Run high level tests with the correct configuration. --- travis-ci.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/travis-ci.sh b/travis-ci.sh index 2b91b6b..3870900 100755 --- a/travis-ci.sh +++ b/travis-ci.sh @@ -20,8 +20,7 @@ dub test --compiler=$DC -c $CONFIG $DUB_FLAGS if [ ${BUILD_EXAMPLE=1} -eq 1 ]; then for ex in $(\ls -1 examples/); do echo "[INFO] Building example $ex" - # --override-config vibe-core/$CONFIG - (cd examples/$ex && dub build --compiler=$DC && dub clean) + (cd examples/$ex && dub build --compiler=$DC --override-config vibe-core/$CONFIG && dub clean) done fi if [ ${RUN_TEST=1} -eq 1 ]; then @@ -32,7 +31,7 @@ if [ ${RUN_TEST=1} -eq 1 ]; then (cd tests && "./${script:6}") else echo "[INFO] Running test $ex" - dub --temp-build --compiler=$DC --single $ex # --override-config vibe-core/$CONFIG + dub --temp-build --compiler=$DC --single $ex --override-config vibe-core/$CONFIG fi done fi From 00bc3dade578e3951334a995fa6e0f4defb00308 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Mon, 25 May 2020 11:38:39 +0200 Subject: [PATCH 5/5] Test cfrunloop on macOS. The raw kqueue loop is now only tested once with the current version of DMD and LDC. --- .travis.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3771453..34af82d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,7 +24,7 @@ d: env: - CONFIG=select - CONFIG=epoll - - CONFIG=kqueue + - CONFIG=cfrunloop # disabled until the libasync driver of eventcore is more than a stub #- CONFIG=libasync @@ -35,7 +35,7 @@ matrix: - d: ldc-latest-ci exclude: - os: linux - env: CONFIG=kqueue + env: CONFIG=cfrunloop - os: osx env: CONFIG=epoll # see https://github.com/ldc-developers/ldc/issues/2187 @@ -44,6 +44,12 @@ matrix: - d: ldc-1.15.0 os: osx include: + - d: dmd + os: osx + env: CONFIG=kqueue + - d: ldc + os: osx + env: CONFIG=kqueue - d: dmd env: CONFIG='select' DUB_FLAGS='--build unittest-cov --build-mode=singleFile' - d: dmd