11#! /bin/bash
22
3- cat << 'EOF '
4- steps:
5- - command: |
6- echo "--- Print environment"
7- uname -a
8- make --version
9- \${SHELL} --version || true
10- c++ --version
11- ld -v
12- ! command -v gdb &>/dev/null || gdb --version
13- ! dmd --version # ensure that no dmd is the current environment
3+ read -r -d ' ' LOAD_CI_FOLDER << - EOM
144 echo "--- Load CI folder"
155 # just to be sure there isn't anything old left
166 git clean -ffdxq .
@@ -21,13 +11,57 @@ steps:
2111 tar xvfz master.tar.gz --strip-components=2 ci-master/buildkite
2212 rm -rf master.tar.gz && popd
2313 fi
14+ EOM
15+
16+ cat << EOF
17+ steps:
18+ - command: |
19+ echo "--- Print environment"
20+ uname -a
21+ make --version
22+ \\\$ {SHELL} --version || true
23+ c++ --version
24+ ld -v
25+ ! command -v gdb &>/dev/null || gdb --version
26+ ! dmd --version # ensure that no dmd is the current environment
27+ ${LOAD_CI_FOLDER}
2428 ./buildkite/build_distribution.sh
2529 label: "Build"
2630 artifact_paths: "distribution.tar.xz"
2731 retry:
2832 automatic:
2933 limit: 2
34+ EOF
3035
36+ # ###############################################################################
37+ # Test bootstrapping with different compilers
38+ # ###############################################################################
39+
40+ case " ${BUILDKITE_REPO:- x} " in
41+ " https://github.com/dlang/dmd.git" | \
42+ " https://github.com/dlang/druntime.git" | \
43+ " https://github.com/dlang/phobos.git" | \
44+ " https://github.com/dlang/ci.git" )
45+
46+ for line in dmd-64 gdc-64 ldc-64 ; do
47+ # TODO: dmd-32
48+ IFS=- read -r compiler model <<< " $line"
49+ cat << EOF
50+ - command: |
51+ ${LOAD_CI_FOLDER}
52+ DMD=$compiler MODEL=$model ./buildkite/test_bootstrap.sh
53+ label: "Bootstrap ($compiler )"
54+ EOF
55+
56+ done
57+ ;;
58+ * )
59+ ;;
60+ esac
61+
62+ # ###############################################################################
63+
64+ cat << 'EOF '
3165 - wait
3266EOF
3367
0 commit comments