testing/web-platform/tests/tools/ci/before_install.sh
author James Graham <james@hoppipolla.co.uk>
Mon, 15 Apr 2019 14:37:31 +0000
changeset 470783 c68ee1d9e9215df90ca3c808b7cda91b0cbb1ab9
parent 445695 93738a87755a70f72f527f44aa085d3cb62d7501
permissions -rwxr-xr-x
Bug 1534281 [wpt PR 15724] - Move more Travis jobs to TaskCluster, a=testonly Automatic update from web-platform-tests Move more Travis jobs to TaskCluster -- Move all setup after clone to tools/ci/tc_run.py -- wpt-commits: 53e263d0d8297a02390d56c3d8f75ee82544780d, cc9980226202699835703082cdd4ccf62be91f8a wpt-pr: 15724

#!/bin/bash
set -e

export GITHUB_PULL_REQUEST=$TRAVIS_PULL_REQUEST
export GITHUB_BRANCH=$TRAVIS_BRANCH

if [[ $RUN_JOB -eq 1 ]] || ./wpt test-jobs --includes $JOB; then
    export RUN_JOB=1
    git submodule update --init --recursive 1>&2
    export DISPLAY=:99.0
    sh -e /etc/init.d/xvfb start 1>&2
    # For uploading the manifest
    export WPT_MANIFEST_FILE=$HOME/meta/MANIFEST-$(git rev-parse HEAD).json
else
    export RUN_JOB=0
fi