Skip to content

Commit

Permalink
Make it possible to set RUN_JOB globally
Browse files Browse the repository at this point in the history
  • Loading branch information
gsnedders committed Feb 27, 2018
1 parent 11da420 commit 1305210
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/ci/before_install.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#!/bin/bash
set -e

if [[ $(./wpt test-jobs --includes $JOB; echo $?) -eq 0 ]]; then
if [[ -z ${RUN_JOB+x} && $(./wpt test-jobs --includes $JOB; echo $?) -eq 0 ]] || [[ $RUN_JOB -eq 1 ]]; 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
elif [[ -z ${RUN_JOB+x} ]]; then
export RUN_JOB=0
fi

0 comments on commit 1305210

Please sign in to comment.