diff --git a/ci.sh b/ci.sh index a333eb3e..4c5b6a14 100755 --- a/ci.sh +++ b/ci.sh @@ -2,7 +2,18 @@ set -exo pipefail -d_version="$(echo "$DSTEP_COMPILER" | sed 's/-latest//')" -source $(curl --retry 3 -fsS https://dlang.org/install.sh | bash -s "$d_version" -a) -./configure --llvm-path "llvm-$DSTEP_LLVM_VERSION" --statically-link-clang -dub test --verror +d_compiler() { + echo "$DSTEP_COMPILER" | \ + sed 's/-latest//' | \ + sed 's/dmd-master/dmd-nightly /' | \ + sed 's/ldc-master/ldc-latest-ci /' +} + +run() { + source $(curl --retry 3 -fsS https://dlang.org/install.sh | bash -s "$(d_compiler)" -a) + ./configure --llvm-path "llvm-$DSTEP_LLVM_VERSION" --statically-link-clang + dub test --verror + +} + +run