.travis.yml 1.42 KB
Newer Older
Björn Bartels's avatar
Björn Bartels committed
1 2 3 4
language: node_js
node_js:
  - "6"
  - "7"
Björn Bartels's avatar
Björn Bartels committed
5
  - "8"
Björn Bartels's avatar
Björn Bartels committed
6 7 8 9 10 11 12 13 14

dist: trusty
sudo: required

addons:
  sonarcloud:
    organization: "bb-drummer-github"
    token:
      secure: "n32t4+uaiGvVfB106DHnX0FFj8uw/0hXRDs9wduPgH6xnBYilycRf8Zw9IHRXEWi251sZxnHBrDttW4GeFa8SP3oskzoYc2kge6RLwDCn6o87zooWjU737yizIqm0OHIf/2Jgcuyfrrctx9F8CUqbfvhAOIq9oNjRs7rQip7hX6cYG736BvSqZUiTS1Y85rD5vTqvunjIOh5nsuPdSRKinmUt8iYJNp1L84Agd0g+dO3zwACyHNByZ20LRLWL8XbkUC35eApB/qcjqysH6PTfcbwJPUdVTuwggBh+umAD7eAPm42e7F7xdx2EMq+9mmazieTvmv1Cwtc9dm9X++PMkUt2sM0KzUqQXYgG3GbzLsCHxuRAiNnphxly4B0Ec/oq6CheVvQ1nVakecqj869lGDv/7Oxf2si/Dt8F1h+xpUrIIOECxvJPNqI4jT0SjWuT7yGDgp1EMD6GJ5GD5aX34jJ9MvgNYdliZpE/BFMTcP4HhUlGyC728XNJJPagzO8hZM4wMNXUGLz7gb/HXAZahSHKQ6MC1FUB9CYiFdZjezFJVeXwPHYvIBi2gINCCcCrpfEAchurRhSEluKvvg30eUfLvXmsqcF/nBM1e8KY5COcV/oLzFXFaWh6Kb7H1B5nKG1wXrMjp4xXdOsnQHGBXnMReP8Lk/rE7RDpDyOe2U="
15

Björn Bartels's avatar
Björn Bartels committed
16 17
jdk:
  - oraclejdk8
18 19 20 21 22 23

env:
  global:
    - CC_TEST_REPORTER_ID=d3d9c3f322f86cad264684e97be447a1e900f3bc6b4c34181e26b5ed19dffc42

before_script:
24
  - npm install
25 26 27 28
  - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
  - chmod +x ./cc-test-reporter
  - ./cc-test-reporter before-build

Björn Bartels's avatar
Björn Bartels committed
29 30
script:
  - npm test
31
  - nyc --report-dir ./coverage mocha --require babel-register
32 33

after_script:
34 35
  - ./cc-test-reporter after-build --coverage-input-type lcov --exit-code $TRAVIS_TEST_RESULT
  - sonar-scanner
36

Björn Bartels's avatar
Björn Bartels committed
37 38 39 40
cache:
  directories:
    - '$HOME/.sonar/cache'