add buildkite sections

This commit is contained in:
Bruno Windels 2019-04-09 17:27:49 +02:00
parent 7dde322ce2
commit 57092eeb4f
2 changed files with 7 additions and 0 deletions

View File

@ -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"

View File

@ -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