Skip to content

Commit

Permalink
Fixes Travis CI build process (#48)
Browse files Browse the repository at this point in the history
* 🐛 Fixing CI throwing “Cannot start Chrome” in test

* travis enable node_modules cache

* Travis - update addons usage of chrome

* Travis - don’t think you need to install global packages

* ➕ eslint as a devDependency for CI
  • Loading branch information
andykenward committed Mar 8, 2018
1 parent b928560 commit 8170aaa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .travis.yml
@@ -1,16 +1,15 @@
sudo: false
sudo: required
dist: trusty
language: node_js
node_js:
- 6
cache:
directories:
- node_modules
addons:
apt:
packages:
- google-chrome-stable
chrome: stable
before_install:
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sleep 3
before_script:
- npm i -g karma karma-cli eslint babel-eslint
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -47,6 +47,7 @@
"babel-eslint": "^7.2.3",
"browser-sync": "^2.18.8",
"chai": "^3.5.0",
"eslint": "^4.18.2",
"karma": "^1.6.0",
"karma-chai": "^0.1.0",
"karma-chrome-launcher": "^2.0.0",
Expand Down

0 comments on commit 8170aaa

Please sign in to comment.