Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a test for Phobos compiled with -preview=in #443

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions buildkite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ projects=(
"vibe-d/vibe.d+base" # 4m31s
"dlang/phobos" # 4m50s
"dlang/phobos+no-autodecode"
"dlang/phobos+preview-in"
"sociomantic-tsunami/ocean" # 4m49s
"sociomantic-tsunami/swarm"
"sociomantic-tsunami/turtle"
Expand Down Expand Up @@ -193,6 +194,7 @@ memory_req["sociomantic-tsunami/ocean"]=high
memory_req["dlang/dlang-bot"]=high
memory_req["dlang/phobos"]=high
memory_req["dlang/phobos+no-autodecode"]=high
memory_req["dlang/phobos+preview-in"]=high
memory_req["dlang/dub"]=high
memory_req["higgsjs/Higgs"]=high
memory_req["d-language-server/dls"]=high
Expand Down
21 changes: 20 additions & 1 deletion buildkite/build_project.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ case "$REPO_FULL_NAME" in
"dlang/druntime" | \
"dlang/phobos" | \
"dlang/phobos+no-autodecode" | \
"dlang/phobos+preview-in" | \
"dlang/tools" | \
"dlang/dub" | \
"dlang/ci")
Expand All @@ -60,7 +61,8 @@ case "$REPO_FULL_NAME" in
"dlang/dmd" | \
"dlang/druntime" | \
"dlang/phobos" | \
"dlang/phobos+no-autodecode")
"dlang/phobos+no-autodecode" | \
"dlang/phobos+preview-in")
ref_to_use="IS-ALREADY-CHECKED-OUT"
;;
*)
Expand Down Expand Up @@ -307,6 +309,23 @@ case "$REPO_FULL_NAME" in
rm -rf "$TMP"
;;

dlang/phobos+preview-in)
"$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"
# 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
# Append `-preview=in` to DMD's config file so druntime / Phobos are built with it
ls -lR
sed 's/^DFLAGS=.*/& -preview=in/' $(find dmd/generated/ -name 'dmd.conf')
make -C druntime -j2 -f posix.mak
cd phobos && make -f posix.mak clean && make -f posix.mak -j2 buildkite-test
rm -rf "$TMP"
;;

d-language-server/dls)
# https://github.com/dlang/ci/issues/360
# dub's .editorconfig influences the behavior of dfmt
Expand Down