chore: fix linting and move linting to circle

This commit is contained in:
David Dias 2018-02-16 18:04:10 +00:00
parent 99873e877b
commit 379febb610
3 changed files with 10 additions and 13 deletions

View File

@ -4,25 +4,16 @@ language: node_js
matrix:
include:
- node_js: 6
- node_js: 'stable'
env: CXX=g++-4.8
- node_js: 8
env: CXX=g++-4.8
# - node_js: stable
# env: CXX=g++-4.8
script:
- npm run lint
- npm run test
- npm run coverage
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
after_success:
- npm run coverage-publish
addons:
firefox: 'latest'
apt:

View File

@ -2,6 +2,12 @@ machine:
node:
version: stable
test:
pre:
- npm run lint
post:
- npm run coverage -- --upload --providers coveralls
dependencies:
pre:
- google-chrome --version
@ -15,4 +21,4 @@ dependencies:
- sudo apt-get install -f
- sudo apt-get install --only-upgrade lsb-base
- sudo dpkg -i google-chrome.deb
- google-chrome --version
- google-chrome --version

View File

@ -55,12 +55,12 @@ parallel([
if (err) { throw err }
node1.pubsub.subscribe('news',
(msg) => console.log(msg.from, msg.data.toString(),
(msg) => console.log(msg.from, msg.data.toString()),
() => {
setInterval(() => {
node2.pubsub.publish('news', Buffer.from('Bird bird bird, bird is the word!'))
}, 1000)
})
}
)
})
})