From 96a9baf33d04a24a58811ae87a3f18576ce7645e Mon Sep 17 00:00:00 2001 From: Sebastian Wilzbach Date: Tue, 21 Aug 2018 17:28:20 +0200 Subject: [PATCH] Run DMD's testsuite on Buildkite --- buildkite.sh | 1 + buildkite/build_project.sh | 12 +++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/buildkite.sh b/buildkite.sh index 03da473a..8ce61d0b 100755 --- a/buildkite.sh +++ b/buildkite.sh @@ -143,6 +143,7 @@ projects=( "BBasile/iz" # 12s "aliak00/optional" # 12s "dlang-community/dfmt" # 11s + "dlang/dmd" # TODO # run in under 10s sorted alphabetically "Abscissa/libInputVisitor" #"ariovistus/pyd" diff --git a/buildkite/build_project.sh b/buildkite/build_project.sh index d749a15a..a79001e9 100755 --- a/buildkite/build_project.sh +++ b/buildkite/build_project.sh @@ -273,12 +273,22 @@ case "$REPO_FULL_NAME" in rm -rf "$TMP" && mkdir -p "$TMP" # patch makefile which requires gdb 8 - see https://github.com/dlang/ci/pull/301 sed "s/TESTS+=rt_trap_exceptions_drt_gdb//" -i druntime/test/exceptions/Makefile + # remove tests which require gdb 8 for now (see https://github.com/dlang/ci/pull/291) + rm dmd/test/runnable/gdb{1,10311,14225,14276,14313,14330,4149,4181}.d + rm dmd/test/runnable/b18504.d + rm dmd/test/runnable/gdb15729.sh # build druntime for phobos first, s.t. it doesn't fault when copying the druntime files in parallel # see https://github.com/dlang/ci/pull/340 if [ "$REPO_FULL_NAME" == "dlang/phobos" ] ; then make -C druntime -j2 -f posix.mak fi - cd "$(basename "${REPO_FULL_NAME}")"&& make -f posix.mak clean && make -f posix.mak -j2 buildkite-test + # need to build everything before testing dmd + if [ "$REPO_FULL_NAME" == "dlang/dmd" ] ; then + make -C dmd -j2 -f posix.mak + make -C druntime -j2 -f posix.mak + make -C phobos -j2 -f posix.mak + fi + cd "$(basename "${REPO_FULL_NAME}")" && make -f posix.mak clean && make -f posix.mak -j2 buildkite-test rm -rf "$TMP" ;;