From 61ca2e14dcec53d7874a78db9516e7c9b315eafb Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Thu, 5 Feb 2015 13:02:25 -0800 Subject: [PATCH] Run integration tests on CI --- build/tasks/spec-task.coffee | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/build/tasks/spec-task.coffee b/build/tasks/spec-task.coffee index 33625ad7a..896c96856 100644 --- a/build/tasks/spec-task.coffee +++ b/build/tasks/spec-task.coffee @@ -85,15 +85,27 @@ module.exports = (grunt) -> appPath = getAppPath() resourcePath = process.cwd() coreSpecsPath = path.resolve('spec') + chromedriverPath = path.join(resourcePath, "atom-shell", "chromedriver") if process.platform in ['darwin', 'linux'] options = cmd: appPath args: ['--test', "--resource-path=#{resourcePath}", "--spec-directory=#{coreSpecsPath}"] + opts: + env: _.extend({}, process.env, + ATOM_INTEGRATION_TESTS_ENABLED: true + PATH: [process.env.path, chromedriverPath].join(":") + ) + else if process.platform is 'win32' options = cmd: process.env.comspec args: ['/c', appPath, '--test', "--resource-path=#{resourcePath}", "--spec-directory=#{coreSpecsPath}", "--log-file=ci.log"] + opts: + env: _.extend({}, process.env, + ATOM_INTEGRATION_TESTS_ENABLED: true + PATH: [process.env.path, chromedriverPath].join(";") + ) spawn options, (error, results, code) -> if process.platform is 'win32'