diff --git a/buildkite.sh b/buildkite.sh index b2710719..662e1e1a 100755 --- a/buildkite.sh +++ b/buildkite.sh @@ -103,6 +103,7 @@ projects=( "vibe-d/vibe.d+vibe-core-base" # 4m31s # https://github.com/vibe-d/vibe.d/issues/2157 "vibe-d/vibe.d+libasync-base" # 3m45s + "dlang/phobos" # 4m50s "sociomantic-tsunami/ocean" # 4m49s "dlang/dub" # 3m55s "vibe-d/vibe-core+epoll" # 3m38s diff --git a/buildkite/build_project.sh b/buildkite/build_project.sh index c6aeb9fa..af24d88c 100755 --- a/buildkite/build_project.sh +++ b/buildkite/build_project.sh @@ -37,11 +37,18 @@ case "$REPO_URL" in ;; esac +# Don't checkout a tagged version of the core repostories like Phobos +case "$REPO_FULL_NAME" in + dlang/phobos) + ;; + *) + echo "--- Cloning the ${REPO_URL} (tag: $latest_tag)" git clone -b "${latest_tag}" --depth 1 "${REPO_URL}" "${REPO_DIR}" - cd "${REPO_DIR}" +esac + use_travis_test_script() { @@ -212,6 +219,17 @@ case "$REPO_FULL_NAME" in make -j2 ldc2 ;; + dlang/phobos) + "$DIR"/clone_repositories.sh + # To avoid running into "Path too long" issues, see e.g. https://github.com/dlang/ci/pull/287 + export TMP="/tmp/${BUILDKITE_AGENT_NAME}" + export TEMP="$TMP" + export TMPDIR="$TMP" + rm -rf "$TMP" && mkdir -p "$TMP" + cd phobos && make -f posix.mak -j2 buildkite-test + rm -rf "$TMP" + ;; + aliak00/optional) dub test "--compiler=$DC" ;;