mr47/opensource-kit

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
language: node_js

node_js:
  - "5"

sudo: false

addons:
  code_climate:
      repo_token: ed7affb886ea3697ade7b50bc36a3be66af736fc01c4e2526d3fd819c5051630

cache:
  directories:
    - "travis-phantomjs"

before_install:
  - "[ -d travis-phantomjs ] || mkdir travis-phantomjs && PHANTOM_EXISTS=false"
  - "if [ $PHANTOM_EXISTS = 'false' ]; then wget https://assets.membergetmember.co/software/phantomjs-2.1.1-linux-x86_64.tar.bz2 -O $PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2; fi"
  - "if [ $PHANTOM_EXISTS = 'false' ]; then tar -xvf $PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2 -C $PWD/travis-phantomjs; fi"
  - "export PATH=$PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64/bin:$PATH"
  - "phantomjs --version"

before_script:
  - npm install -g codeclimate-test-reporter
script:
  - npm test

after_script:
  - codeclimate-test-reporter < dist/coverage/**/lcov.info