Skip to content

Commit

Permalink
better ci config
Browse files Browse the repository at this point in the history
  • Loading branch information
tur-nr committed Jul 7, 2016
1 parent bee3f49 commit c44542c
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 13 deletions.
28 changes: 17 additions & 11 deletions .travis.yml
@@ -1,15 +1,21 @@
language: node_js
sudo: true
dist: trusty
node_js:
- "4"
before_install:
- export CHROME_BIN=/usr/bin/google-chrome
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sudo apt-get update
- sudo apt-get install -y libappindicator1 fonts-liberation
- wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
- sudo dpkg -i google-chrome*.deb
node_js: 4
cache:
directories:
- node_modules
addons:
firefox: 46.0
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
before_script:
- bower install
- npm run lint
script:
- xvfb-run npm test
after_script:
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
4 changes: 3 additions & 1 deletion package.json
Expand Up @@ -5,7 +5,8 @@
"main": "polymer-redux.js",
"scripts": {
"postinstall": "bower install",
"test": "gulp test"
"test": "gulp test",
"lint": "polylint"
},
"repository": {
"type": "git",
Expand All @@ -28,6 +29,7 @@
"bower": "^1.5.2",
"coveralls": "^2.11.9",
"gulp": "^3.9.1",
"polylint": "^2.10.1",
"polymer-cli": "^0.11.1",
"redux": "^3.0.5",
"reselect": "^2.5.1",
Expand Down
2 changes: 1 addition & 1 deletion wct.conf.json
@@ -1,7 +1,7 @@
{
"plugins": {
"local": {
"browsers": ["chrome"]
"browsers": ["chrome", "firefox"]
},
"istanbul": {
"dir": "./coverage",
Expand Down

0 comments on commit c44542c

Please sign in to comment.