From b5556440eb13386550e0ce913ebec3505375e23c Mon Sep 17 00:00:00 2001 From: Ryan Duffy Date: Fri, 7 Jul 2023 11:34:26 -0700 Subject: [PATCH] Add buildkite script --- .buildkite/e2e.sh | 27 +++++++++++++++++++++++++++ .buildkite/e2e.yml | 3 +++ 2 files changed, 30 insertions(+) create mode 100755 .buildkite/e2e.sh create mode 100644 .buildkite/e2e.yml diff --git a/.buildkite/e2e.sh b/.buildkite/e2e.sh new file mode 100755 index 0000000000000..7a227236c56b8 --- /dev/null +++ b/.buildkite/e2e.sh @@ -0,0 +1,27 @@ +set -eox pipefail + +trap "trap - SIGTERM && kill -- -$$" SIGINT SIGTERM EXIT + +SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) + +echo "Init test run id" +export RECORD_REPLAY_METADATA_TEST_RUN_ID=$(npx uuid) + +echo "Install yarn" +sudo npm i -g yarn + +echo "Yarn install" +yarn install --frozen-lockfile --prefer-offline + +echo "Install Java" +which java > /dev/null || (curl -O https://download.java.net/java/GA/jdk20.0.1/b4887098932d415489976708ad6d1a4b/9/GPL/openjdk-20.0.1_linux-x64_bin.tar.gz && tar xf openjdk-20.0.1_linux-x64_bin.tar.gz) + +echo "Install Clojure" +which bash > /dev/null || (curl -O https://download.clojure.org/install/linux-install-1.11.1.1262.sh && sudo bash ./linux-install-1.11.1.1262.sh) + +echo "Build uberjar with ./bin/build.sh" +$SCRIPT_DIR/../bin/build.sh + +# echo "Running cypress tests" +CYPRESS_REPLAYIO_ENABLED=1 yarn test-cypress-run --browser replay-chromium + diff --git a/.buildkite/e2e.yml b/.buildkite/e2e.yml new file mode 100644 index 0000000000000..8e634c7606f51 --- /dev/null +++ b/.buildkite/e2e.yml @@ -0,0 +1,3 @@ +steps: + - label: "Get Crash Reports from Session IDs" + command: "./scripts/buildkite_get_crash_reports.sh"