Skip to content

Commit

Permalink
Merge pull request #165 from vibe-d/remove_travis_appveyor
Browse files Browse the repository at this point in the history
Remove Travis-CI and AppVeyor configuration files
  • Loading branch information
s-ludwig authored Nov 26, 2020
2 parents 92ac3f4 + 10bedb2 commit 5e060d2
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 212 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ jobs:
test:
name: CI
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
dc: [dmd-latest, ldc-latest]
dc: [dmd-latest, ldc-latest, dmd-2.079.0, ldc-1.9.0, ldc-1.17.0]
arch: [x86_64]
config: [select, epoll, cfrunloop, winapi]
exclude:
Expand All @@ -25,6 +26,14 @@ jobs:
- {os: macOS-latest, config: winapi}
- {os: windows-latest, config: cfrunloop}
- {os: windows-latest, config: epoll}
# macOS fails up to FE 2.086.x, so we test on a slightly newer
# version instead
# "dyld: lazy symbol binding failed: Symbol not found: _dyld_enumerate_tlv_storage"
- {os: macOS-latest, dc: dmd-2.079.0}
- {os: macOS-latest, dc: ldc-1.9.0}
- {os: windows-latest, dc: ldc-1.9.0, config: select}
- {os: windows-latest, dc: ldc-1.17.0}
- {os: ubuntu-latest, dc: ldc-1.17.0}

runs-on: ${{ matrix.os }}
steps:
Expand All @@ -38,5 +47,6 @@ jobs:
- name: Run tests
env:
CONFIG: ${{matrix.config}}
ARCH: ${{matrix.arch}}
shell: bash
run: ./travis-ci.sh
run: ./run-ci.sh
50 changes: 0 additions & 50 deletions .travis.yml

This file was deleted.

156 changes: 0 additions & 156 deletions appveyor.yml

This file was deleted.

10 changes: 6 additions & 4 deletions travis-ci.sh → run-ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@
set -e -x -o pipefail

# test for successful release build
dub build -b release --compiler=$DC -c $CONFIG
dub build -b release --arch=$ARCH --compiler=$DC -c $CONFIG

# test for successful 32-bit build
if [ "$DC" == "ldc2" ]; then
dub build --arch=x86 --compiler=ldc2 -c $CONFIG
fi

dub test --compiler=$DC -c $CONFIG
dub test --arch=$ARCH --compiler=$DC -c $CONFIG

if [ ${BUILD_EXAMPLE=1} -eq 1 ]; then
for ex in $(\ls -1 examples/*.d); do
echo "[INFO] Building example $ex"
dub build --compiler=$DC --override-config eventcore/$CONFIG --single $ex
dub build --arch=$ARCH --compiler=$DC --override-config eventcore/$CONFIG --single $ex
done
rm -rf examples/.dub/
rm -f examples/*-example
Expand All @@ -24,6 +24,8 @@ fi
if [ ${RUN_TEST=1} -eq 1 ]; then
for ex in `\ls -1 tests/*.d`; do
echo "[INFO] Running test $ex"
dub --temp-build --compiler=$DC --override-config eventcore/$CONFIG --single $ex
# NOTE: timer and directory watcher tests tend to be flaky on macOS VMs
dub --temp-build --arch=$ARCH --compiler=$DC --override-config eventcore/$CONFIG --single $ex \
|| dub --temp-build --arch=$ARCH --compiler=$DC --override-config eventcore/$CONFIG --single $ex
done
fi

0 comments on commit 5e060d2

Please sign in to comment.