diff --git a/.gitignore b/.gitignore index 5b1fd197ff..c2ba63700d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ # Logs logs *.log +npm-debug.log* # Runtime data pids @@ -23,8 +24,12 @@ coverage build/Release # Dependency directory -# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git node_modules +# Optional npm cache directory +.npm + +# Optional REPL history +.node_repl_history + dist -lib \ No newline at end of file diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000000..c57cab761a --- /dev/null +++ b/.npmignore @@ -0,0 +1,28 @@ +# Logs +logs +*.log + +# Runtime data +pids +*.pid +*.seed + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage + +# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# Compiled binary addons (http://nodejs.org/api/addons.html) +build/Release + +# Optional npm cache directory +.npm + +# Optional REPL history +.node_repl_history + +test \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index 3828e30dcd..4fe6550d7a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,16 +1,36 @@ -use_sudo: false +sudo: false language: node_js -node_js: - - 4 - - 5 - -branches: - only: - - master +matrix: + include: + - node_js: 4 + env: CXX=g++-4.8 + - node_js: 6 + env: + - SAUCE=true + - CXX=g++-4.8 + - node_js: stable + env: CXX=g++-4.8 +# Make sure we have new NPM. before_install: - - npm i -g npm - # Workaround for a permissions issue with Travis virtual machine images + - npm install -g npm + script: - npm run lint - npm 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: + sources: + - ubuntu-toolchain-r-test + packages: + - g++-4.8 \ No newline at end of file diff --git a/circle.yml b/circle.yml new file mode 100644 index 0000000000..434211a760 --- /dev/null +++ b/circle.yml @@ -0,0 +1,12 @@ +machine: + node: + version: stable + +dependencies: + pre: + - google-chrome --version + - wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - + - sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' + - sudo apt-get update + - sudo apt-get --only-upgrade install google-chrome-stable + - google-chrome --version