diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..87a587b13 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,14 @@ +language: node_js +node_js: + - "lts/*" + - "node" + +cache: + directories: + - node_modules + +install: + - npm install + +after_success: + - npm run codecov diff --git a/README.md b/README.md index c87a7593e..0ddc581d2 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,6 @@ +[![Build status](https://travis-ci.org/City-of-Helsinki/linkedevents-ui.svg?branch=master)](https://travis-ci.org/City-of-Helsinki/linkedevents-ui) +[![codecov](https://codecov.io/gh/City-of-Helsinki/linkedevents-ui/branch/master/graph/badge.svg)](https://codecov.io/gh/City-of-Helsinki/linkedevents-ui) + # Installation ``` diff --git a/package.json b/package.json index 2f95a140f..522100948 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "babel-preset-stage-2": "^6.1.18", "body-parser": "^1.14.1", "bootstrap": "4.0.0-alpha.2", + "codecov": "^2.3.0", "connect-history-api-fallback": "^1.1.0", "cookie-parser": "^1.4.0", "cookie-session": "^2.0.0-alpha.1",