jamonkko/babel-plugin-rename-assigned-properties

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
language: node_js
dist: trusty
sudo: false
cache:
  yarn: true
  directories:
    - $HOME/.cache/yarn
    - $HOME/.npm
before_cache:
  - echo "{}" > /home/travis/.npm/anonymous-cli-metrics.json

addons:
  apt:
    sources:
      - sourceline: 'deb https://dl.yarnpkg.com/debian/ stable main'
        key_url: 'https://dl.yarnpkg.com/debian/pubkey.gpg'
    packages:
      - yarn

node_js:
  - stable
  - 8
  - 7
  - 6
  - 5
  - 0.12
  - 0.10

install: if [[ `node -v` == v0.1* ]]; then npm install; elif [[ `node -v` > v8 ]]; then npm install; else yarn install; fi

script: if [ "$TRAVIS_NODE_VERSION" = "stable" ]; then npm run build && npm run cover; else npm test; fi

after_success:
 - if [ "$TRAVIS_NODE_VERSION" = "stable" ]; then npm run cover:report:coveralls; fi
 - if [ "$TRAVIS_NODE_VERSION" = "stable" ]; then npm install codeclimate-test-reporter --global; fi
 - if [ "$TRAVIS_NODE_VERSION" = "stable" ]; then codeclimate-test-reporter < coverage/lcov.info; fi