diff --git a/.buildkite/pipeline.yaml b/.buildkite/pipeline.yaml index ea468d1e6d..3e92bd483a 100644 --- a/.buildkite/pipeline.yaml +++ b/.buildkite/pipeline.yaml @@ -10,6 +10,7 @@ steps: - label: ":chains: End-to-End Tests" command: # TODO: Remove hacky chmod for BuildKite + - "echo \"--- Installing packages, & setup\"" - "chmod +x ./scripts/ci/*.sh" - "chmod +x ./scripts/*" - "apt-get update" diff --git a/scripts/ci/end-to-end-tests.sh b/scripts/ci/end-to-end-tests.sh index 64e022b370..0d1f973418 100644 --- a/scripts/ci/end-to-end-tests.sh +++ b/scripts/ci/end-to-end-tests.sh @@ -7,6 +7,7 @@ set -ev upload_logs() { + echo "--- Uploading logs" buildkite-agent artifact upload "logs/**/*;synapse/installations/consent/homeserver.log" } @@ -23,15 +24,20 @@ trap 'handle_error' ERR RIOT_WEB_DIR=riot-web REACT_SDK_DIR=`pwd` + +echo "--- Building copy of Riot" scripts/ci/build.sh # run end to end tests +echo "--- Fetching end-to-end tests from master" scripts/fetchdep.sh matrix-org matrix-react-end-to-end-tests master pushd matrix-react-end-to-end-tests ln -s $REACT_SDK_DIR/$RIOT_WEB_DIR riot/riot-web # PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true ./install.sh # CHROME_PATH=$(which google-chrome-stable) ./run.sh +echo "--- Install synapse & other dependencies" ./install.sh mkdir logs +echo "+++ Running end-to-end tests" TESTS_STARTED=1 ./run.sh --no-sandbox --log-directory logs/ popd