diff --git a/.travis.yml b/.travis.yml index 630ad9d..8e83c10 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,10 @@ node_js: - "4" sudo: false +dist: trusty + +addons: + chrome: stable cache: yarn: true @@ -21,15 +25,13 @@ env: matrix: fast_finish: true allow_failures: - - env: EMBER_TRY_SCENARIO=ember-beta - env: EMBER_TRY_SCENARIO=ember-canary before_install: - curl -o- -L https://yarnpkg.com/install.sh | bash - export PATH=$HOME/.yarn/bin:$PATH - - yarn global add bower phantomjs-prebuilt + - yarn global add bower - bower --version - - phantomjs --version install: - yarn install --no-lockfile diff --git a/package.json b/package.json index 8363e22..2ab695d 100644 --- a/package.json +++ b/package.json @@ -53,6 +53,7 @@ "ember-cli-htmlbars-inline-precompile": "^1.0.0", "ember-cli-inject-live-reload": "^1.4.1", "ember-cli-shims": "^1.1.0", + "ember-disable-prototype-extensions": "^1.1.2", "ember-load-initializers": "^1.0.0", "ember-resolver": "^4.0.0", "ember-source": "~2.17.0", diff --git a/testem.js b/testem.js index e94381d..514f0b5 100644 --- a/testem.js +++ b/testem.js @@ -6,10 +6,23 @@ module.exports = { "test_page": "tests/index.html?hidepassed", "disable_watching": true, "launch_in_ci": [ - "PhantomJS" + "Chrome", ], "launch_in_dev": [ - "PhantomJS", - "Chrome" - ] + "Chrome", + ], + "browser_args": { + "Chrome": { + mode: 'ci', + args: [ + // --no-sandbox is needed when running Chrome inside a container + process.env.TRAVIS ? '--no-sandbox' : null, + + '--disable-gpu', + '--headless', + '--remote-debugging-port=0', + '--window-size=1440,900', + ].filter(Boolean), + }, + }, }; diff --git a/yarn.lock b/yarn.lock index d3123ae..b4e4f2f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2003,6 +2003,10 @@ ember-cli@~2.16.0: walk-sync "^0.3.0" yam "0.0.22" +ember-disable-prototype-extensions@^1.1.2: + version "1.1.3" + resolved "https://registry.yarnpkg.com/ember-disable-prototype-extensions/-/ember-disable-prototype-extensions-1.1.3.tgz#1969135217654b5e278f9fe2d9d4e49b5720329e" + ember-load-initializers@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/ember-load-initializers/-/ember-load-initializers-1.0.0.tgz#4919eaf06f6dfeca7e134633d8c05a6c9921e6e7"