From 4285a61ef776abb94b617efdd0d8e951e53c8331 Mon Sep 17 00:00:00 2001 From: Viraj Trivedi Date: Wed, 20 Jun 2018 23:13:04 +0530 Subject: [PATCH] ci: Added semver-release for Automated Release and TravisCI support #27 --- .travis.yml | 14 ++++++++++++++ README.md | 3 +++ package.json | 12 ++++++++---- 3 files changed, 25 insertions(+), 4 deletions(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..ae04d6f --- /dev/null +++ b/.travis.yml @@ -0,0 +1,14 @@ +language: node_js +cache: + directories: + - ~/.npm +notifications: + email: false +node_js: + - '9' + - '8' +after_success: + - npm run travis-deploy-once "npm run semantic-release" +branches: + except: + - /^v\d+\.\d+\.\d+$/ diff --git a/README.md b/README.md index 2678d92..7479891 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,7 @@ # Rocket.Chat.RealTime.API.Abstraction + +[![Build Status](https://travis-ci.org/inf3cti0n95/Rocket.Chat.RealTime.API.RxJS.svg?branch=master)](https://travis-ci.org/inf3cti0n95/Rocket.Chat.RealTime.API.RxJS) + Abstraction for Utilizing [Rocket.Chat](https://rocket.chat/)'s [Realtime API](https://rocket.chat/docs/developer-guides/realtime-api) Methods with [RxJS](http://reactivex.io/rxjs/) ## Installation diff --git a/package.json b/package.json index 45e8d69..9945a3d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rocket.chat.realtime.api.rxjs", - "version": "0.0.4", + "version": "0.0.0-development", "description": "Abstraction for Utilizing Rocket.Chat's Realtime API Methods with RxJS", "main": "lib/index.js", "directories": { @@ -18,14 +18,18 @@ "jest": "^23.1.0", "mock-socket": "^7.1.0", "ts-jest": "^22.4.6", - "typescript": "^2.3.4" + "typescript": "^2.3.4", + "travis-deploy-once": "^5.0.0", + "semantic-release": "^15.6.0" }, "scripts": { - "test": "jest --env=jsdom" + "test": "jest --env=jsdom", + "travis-deploy-once": "travis-deploy-once", + "semantic-release": "semantic-release" }, "repository": { "type": "git", - "url": "git+https://github.com/inf3cti0n95/Rocket.Chat.RealTime.API.RxJS.git" + "url": "https://github.com/inf3cti0n95/Rocket.Chat.RealTime.API.RxJS.git" }, "keywords": [ "Rocket.Chat",