Skip to content

Commit

Permalink
feat: add the CI stuffs
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddias committed Nov 26, 2016
1 parent 5d0b25c commit e10ec13
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 12 deletions.
9 changes: 7 additions & 2 deletions .gitignore
@@ -1,6 +1,7 @@
# Logs
logs
*.log
npm-debug.log*

# Runtime data
pids
Expand All @@ -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
28 changes: 28 additions & 0 deletions .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
40 changes: 30 additions & 10 deletions .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
12 changes: 12 additions & 0 deletions 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

0 comments on commit e10ec13

Please sign in to comment.