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" - label: ":chains: End-to-End Tests"
command: command:
# TODO: Remove hacky chmod for BuildKite # TODO: Remove hacky chmod for BuildKite
- "echo \"--- Installing packages, & setup\""
- "chmod +x ./scripts/ci/*.sh" - "chmod +x ./scripts/ci/*.sh"
- "chmod +x ./scripts/*" - "chmod +x ./scripts/*"
- "apt-get update" - "apt-get update"

View file

@ -7,6 +7,7 @@
set -ev set -ev
upload_logs() { upload_logs() {
echo "--- Uploading logs"
buildkite-agent artifact upload "logs/**/*;synapse/installations/consent/homeserver.log" buildkite-agent artifact upload "logs/**/*;synapse/installations/consent/homeserver.log"
} }
@ -23,15 +24,20 @@ trap 'handle_error' ERR
RIOT_WEB_DIR=riot-web RIOT_WEB_DIR=riot-web
REACT_SDK_DIR=`pwd` REACT_SDK_DIR=`pwd`
echo "--- Building copy of Riot"
scripts/ci/build.sh scripts/ci/build.sh
# run end to end tests # 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 scripts/fetchdep.sh matrix-org matrix-react-end-to-end-tests master
pushd matrix-react-end-to-end-tests pushd matrix-react-end-to-end-tests
ln -s $REACT_SDK_DIR/$RIOT_WEB_DIR riot/riot-web ln -s $REACT_SDK_DIR/$RIOT_WEB_DIR riot/riot-web
# PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true ./install.sh # PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true ./install.sh
# CHROME_PATH=$(which google-chrome-stable) ./run.sh # CHROME_PATH=$(which google-chrome-stable) ./run.sh
echo "--- Install synapse & other dependencies"
./install.sh ./install.sh
mkdir logs mkdir logs
echo "+++ Running end-to-end tests"
TESTS_STARTED=1 TESTS_STARTED=1
./run.sh --no-sandbox --log-directory logs/ ./run.sh --no-sandbox --log-directory logs/
popd popd