Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Electron to run browser tests with Travis #605

Merged
merged 6 commits into from Feb 14, 2016

Tests check for saucelabs environment variables, not Travis

  • Loading branch information
josephfrazier committed Feb 9, 2016
commit fa40431404bd852b9aae78d6116ee20fe80299f4
@@ -2,12 +2,11 @@

var spawn = require('cross-spawn-async')

var runBrowserTests = process.env.TRAVIS && (!process.env.TRAVIS_PULL_REQUEST ||
process.env.TRAVIS_PULL_REQUEST === 'false')
var runSauceLabs = process.env.SAUCE_USERNAME && process.env.SAUCE_ACCESS_KEY

npmRun('test-node', function (code) {
if (code === 0) {
var scriptName = runBrowserTests ? 'test-browser' : 'test-browser-headless'
var scriptName = runSauceLabs ? 'test-browser' : 'test-browser-headless'
npmRun(scriptName, function (code) {
process.exit(code)
})
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.