From c9fb5d50262d14ee16d45cccc21dab1c1cc311a4 Mon Sep 17 00:00:00 2001 From: Niklas von Hertzen Date: Fri, 11 Aug 2017 23:25:37 +0800 Subject: [PATCH] Add Chrome reftests to Travis --- .travis.yml | 6 ++++++ karma.conf.js | 2 +- package.json | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index a9b2644..9033590 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,7 +7,13 @@ env: - secure: Y2Av+Gd3z9uQEB36GwdOOuGka0hx0/HeitASEo59z934O8RxnmN9eNTXS7dDT3XtKtwxIyLTOEpS7qlRdWahH28hr/dS4xJj6ao58C+1xMcDs6NAPGmDxUlcJWpcGEsnjmXjQCc3fBioSTdpIBrK/gdvgpNh77UKG74Sk7Z+YGk= - secure: YI+YbTOGf2x4fPMKW+KhJiZWswoXT6xOKGwLfsQsVwmFX1LerJouil5D5iYOQuL4FE3pNaoJSNakIsokJQuGKJMmnPc8rdhMZuBJBk6MRghurE2Xe9qBHfuUBPlfD61nARESm4WDcyMwM0QVYaOKeY6aIpZ91qbUbyc60EEx3C4= addons: + chrome: stable sauce_connect: true +dist: trusty +sudo: false +before_script: + - export DISPLAY=:99.0 + - sh -e /etc/init.d/xvfb start notifications: webhooks: urls: diff --git a/karma.conf.js b/karma.conf.js index c09ccee..4a51664 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -17,7 +17,7 @@ module.exports = function(config) { // list of files / patterns to load in the browser files: [ - 'tests/testrunner.js', + 'build/testrunner.js', { pattern: './tests/**/*', 'watched': true, 'included': false, 'served': true}, { pattern: './dist/**/*', 'watched': true, 'included': false, 'served': true}, { pattern: './node_modules/**/*', 'watched': true, 'included': false, 'served': true} diff --git a/package.json b/package.json index 4aff998..284ebdc 100644 --- a/package.json +++ b/package.json @@ -57,7 +57,7 @@ "format": "prettier --single-quote --no-bracket-spacing --tab-width 4 --print-width 100 --write \"{src,tests,scripts}/**/*.js\"", "flow": "flow", "lint": "eslint src/**", - "test": "npm run flow && npm run lint", + "test": "npm run flow && npm run lint && karma start --single-run --browsers Chrome", "karma": "karma start karma.conf.js", "watch": "webpack --progress --colors --watch" },