Skip to content
This repository was archived by the owner on Oct 20, 2021. It is now read-only.

Commit b6ec644

Browse files
author
Jamie Brynes
authored
Tidy up Buildkite logs (#221)
1 parent eeb82d9 commit b6ec644

File tree

3 files changed

+20
-4
lines changed

3 files changed

+20
-4
lines changed

ci/bootstrap.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#!/usr/bin/env bash
2-
set -e -u -x -o pipefail
2+
set -e -u -o pipefail
3+
4+
if [[ -n "${DEBUG-}" ]]; then
5+
set -x
6+
fi
37

48
function isLinux() {
59
[[ "$(uname -s)" == "Linux" ]];
@@ -15,6 +19,8 @@ function isWindows() {
1519

1620
cd "$(dirname "$0")/../"
1721

22+
echo "--- Bootstrapping :boot:"
23+
1824
SHARED_CI_DIR="$(pwd)/.shared-ci"
1925
CLONE_URL="[email protected]:spatialos/gdk-for-unity-shared-ci.git"
2026
PINNED_SHARED_CI_VERSION=$(cat ./ci/shared-ci.pinned)
@@ -62,9 +68,12 @@ pushd "${TARGET_DIRECTORY}"
6268
git remote add origin "${CLONE_URI}"
6369
git fetch --depth 20 origin develop
6470
git checkout "${PINNED_VERSION}"
71+
echo "--- Hit init :right-facing_fist::red_button:"
6572
./init.sh
6673
popd
6774

75+
echo "--- Symlinking packages :link::package:"
76+
6877
if isWindows; then
6978
if [[ -z ${BUILDKITE:-} ]]; then
7079
powershell Start-Process -Verb RunAs -WindowStyle Hidden -Wait -FilePath dotnet.exe -ArgumentList "run", "-p", "$(pwd)/.shared-ci/tools/PackageSymLinker/PackageSymLinker.csproj", "\-\-", "--packages-source-dir", "${TARGET_DIRECTORY}/workers/unity/Packages", "--package-target-dir", "$(pwd)/workers/unity/Packages"

ci/launch.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,22 @@
11
#!/usr/bin/env bash
22

3-
set -e -u -x -o pipefail
3+
set -e -u -o pipefail
4+
5+
if [[ -n "${DEBUG-}" ]]; then
6+
set -x
7+
fi
48

59
cd "$(dirname "$0")/../"
610

711
source ".shared-ci/scripts/pinned-tools.sh"
812

913
# Download the artifacts and reconstruct the build/assemblies folder.
14+
echo "--- Downloading assembly :inbox_tray:"
1015
buildkite-agent artifact download "build\assembly\**\*" .
1116

1217
uploadAssembly "${ASSEMBLY_PREFIX}" "${PROJECT_NAME}"
1318

14-
echo "Launching deployments"
19+
echo "--- Launching main deployment :airplane_departure:"
1520

1621
dotnet run -p workers/unity/Packages/io.improbable.gdk.deploymentlauncher/.DeploymentLauncher/DeploymentLauncher.csproj -- \
1722
create \
@@ -27,6 +32,8 @@ CONSOLE_URL="https://console.improbable.io/projects/${PROJECT_NAME}/deployments/
2732

2833
buildkite-agent annotate --style "success" "Deployment URL: ${CONSOLE_URL}<br/>"
2934

35+
echo "--- Launching sim player deployment :robot_face:"
36+
3037
dotnet run -p workers/unity/Packages/io.improbable.gdk.deploymentlauncher/.DeploymentLauncher/DeploymentLauncher.csproj -- \
3138
create-sim \
3239
--project_name "${PROJECT_NAME}" \

ci/shared-ci.pinned

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3af739d9470a84ef58b6f72e57df06387cd0dd27
1+
4085a20354d1e41502de36e1330bd589576edb58

0 commit comments

Comments
 (0)