From f8e68d048fb0e51587e10db6af28a11fd983cb7e Mon Sep 17 00:00:00 2001 From: saminzadeh Date: Wed, 12 Apr 2017 11:48:11 -0400 Subject: [PATCH] Adding Travis Integration (#2) * Add travis file * Add coveralls * Add travis badge to readme --- .travis.yml | 15 +++++++++++++-- README.md | 2 +- package.json | 3 +-- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index eccffb762c..248e980d84 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,2 +1,13 @@ -language: node -after_success: npm run coverage +language: node_js +node_js: + - '6' +cache: + directories: + - node_modules +script: + - npm run lint + - npm run coverage + - npm run build +after_success: + - npm install -g coveralls + - cat coverage/lcov.info | coveralls diff --git a/README.md b/README.md index 599f16c1b2..92e3866522 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ## WARNING: This is Alpha software and not intended for use until a stable release. -# Jaeger UI +# Jaeger UI [![Build Status](https://travis-ci.org/uber/jaeger-ui.svg?branch=master)](https://travis-ci.org/uber/jaeger-ui) Visualize distributed tracing with Jaeger. [See the demo](https://uber.github.io/jaeger-ui/). diff --git a/package.json b/package.json index 37dc9ef19c..7332fb51ee 100644 --- a/package.json +++ b/package.json @@ -74,8 +74,7 @@ "build:docs": "HOMEPAGE=http://uber.github.io/jaeger-ui npm run set-homepage && REACT_APP_DEMO=true REACT_APP_GH_PAGES=true npm run build && npm run clear-homepage", "eject": "react-scripts eject", "test": "react-scripts test --env=jsdom", - "test:coverage": "npm run test -- --coverage", - "test:all": "npm run lint && CI=1 npm run test:coverage", + "coverage": "npm run test -- --coverage", "lint": "npm run eslint && npm run prettier && npm run flow", "eslint": "eslint .", "prettier": "prettier --single-quote --trailing-comma es5 --write \"src/**/*.js\"",