Skip to content
This repository has been archived by the owner on Feb 18, 2021. It is now read-only.

Commit

Permalink
Added special handling for Jetpack branches
Browse files Browse the repository at this point in the history
  • Loading branch information
hoverduck committed Jan 20, 2017
1 parent aa43fa1 commit a499375
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
1 change: 0 additions & 1 deletion circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ general:
- "logs"
branches:
ignore:
- /.*[j,J]etpack.*/ # ignore branches with jetpack in their name for Circle - these are run in a separate build
- /.*[v,V]isdiff.*/ # ignore branches with visdiff in their name for Circle - these are run in a separate build
- /.*i[o,O][s,S].*/ # ignore branches with iOS in their name for Circle - these are run in a separate build

Expand Down
5 changes: 2 additions & 3 deletions run-wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ if [ "$CIRCLE_NODE_INDEX" == "0" ]; then
if [ "$SKIP_TEST_REGEX" != "" ]; then
babel-node --presets es2015 lib/slack-ping-cli.js "Attention! Tests are being skipped with pattern [$SKIP_TEST_REGEX]"
fi
if [ "$RUN_VISDIFF" != "true" ]; then
babel-node --presets es2015 lib/slack-ping-cli.js "Attention! Visual Diff tests are currently disabled!"
fi
fi

if [ "$NODE_ENV_OVERRIDE" != "" ]; then
Expand All @@ -20,6 +17,8 @@ export TESTARGS="-R -p"

if [ "$RUN_SPECIFIED" == "true" ]; then
TESTARGS=$RUN_ARGS
elif [[ "$CIRCLE_BRANCH" =~ .*[Jj]etpack.*|.*[Jj][Pp].* ]]; then
TESTARGS="-R -j" # Execute Jetpack tests
elif [ "$CIRCLE_BRANCH" == "master" ]; then
TESTARGS="-R -p" # Parallel execution, implies -g -s mobile,desktop
fi
Expand Down
7 changes: 6 additions & 1 deletion run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ if [ $# -eq 0 ]; then
usage
fi

while getopts ":Rpb:s:givwl:cm:fh" opt; do
while getopts ":Rpb:s:givwl:cm:fhj" opt; do
case $opt in
R)
REPORTER="-R spec-xunit-slack-reporter"
Expand Down Expand Up @@ -91,6 +91,11 @@ while getopts ":Rpb:s:givwl:cm:fh" opt; do
fi
exit $?
;;
j)
MOCHA+=" --compilers js:babel-register"
SCREENSIZES="desktop,mobile"
TARGET="specs-jetpack-calypso/"
;;
f)
NODE_CONFIG_ARGS+=("\"failVisdiffs\":\"true\"")
;;
Expand Down

0 comments on commit a499375

Please sign in to comment.