Skip to content

Commit

Permalink
fixup! WIP: move saucelabs tests to circle
Browse files Browse the repository at this point in the history
CircleCI does not seem to log output of background scripts which are not spawned through CircleCI's background flag
  • Loading branch information
devversion committed Jan 5, 2019
1 parent fcda67b commit 39557e7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -425,10 +425,15 @@ jobs:
- *yarn_install
- *define_env_vars
- run: echo "export KARMA_JS_BROWSERS=`node -e \"console.log(require('./browser-providers.conf').sauceAliases.CI_REQUIRED.join(','))\"`" | tee -a $BASH_ENV
- run: ./scripts/saucelabs/start-tunnel.sh
- run:
name: Starting Saucelabs tunnel
command: ./scripts/saucelabs/start-tunnel.sh
background: true
- run: yarn tsc -p packages
- run: yarn tsc -p packages/examples
- run: yarn tsc -p modules
# Waits for the Saucelabs tunnel to be ready. This ensures that we don't run tests
# too early without Saucelabs not being ready.
- run: ./scripts/saucelabs/wait-tunnel.sh
- run: yarn karma start ./karma-js.conf.js --single-run --browsers=${KARMA_JS_BROWSERS}
- run: ./scripts/saucelabs/stop-tunnel.sh
Expand Down
4 changes: 2 additions & 2 deletions scripts/saucelabs/start-tunnel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ if [[ ! -z "${SAUCE_TUNNEL_IDENTIFIER}" ]]; then
sauceArgs="${sauceArgs} --tunnel-identifier ${SAUCE_TUNNEL_IDENTIFIER}"
fi

echo "Starting Sauce Connect in the background. Passed arguments: ${sauceArgs}"
echo "Starting Sauce Connect. Passed arguments: ${sauceArgs}"

sauce-connect/bin/sc -u ${SAUCE_USERNAME} -k ${SAUCE_ACCESS_KEY} ${sauceArgs} &
sauce-connect/bin/sc -u ${SAUCE_USERNAME} -k ${SAUCE_ACCESS_KEY} ${sauceArgs}

0 comments on commit 39557e7

Please sign in to comment.