diff --git a/.travis.yml b/.travis.yml index 5102ee5f..149a33da 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: diff --git a/circle.yml b/circle.yml index 4e1698a6..b9d3e0cb 100644 --- a/circle.yml +++ b/circle.yml @@ -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 \ No newline at end of file + - google-chrome --version diff --git a/examples/pubsub/1.js b/examples/pubsub/1.js index 48797a7c..08385433 100644 --- a/examples/pubsub/1.js +++ b/examples/pubsub/1.js @@ -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) - }) + } ) }) })