Skip to content

Commit 37dbdac

Browse files
authored
Merge pull request #82 from compulim/feat-travis
Add Travis CI
2 parents 3c666fd + 0058d0b commit 37dbdac

4 files changed

Lines changed: 285 additions & 1192 deletions

File tree

.travis.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
language: node_js
2+
node_js:
3+
- "10"
4+
before_script:
5+
- npx version-from-git --travis --no-git-tag-version
6+
- npm run build
7+
deploy:
8+
# Since we are using Lerna without hoist (conflict between babel@6 and babel@7), thus, we cannot use npm provider to deploy
9+
- provider: npm
10+
api_key:
11+
secure: "W24mXQs7PztN6beyuVo2tLap4Lzu/xwWYocWg+HCOh8P86rlHpNSAZ3vU1QxuFTApaykimenE2m8Q62nz9wcCc++BvTZ1N5bDH63nzPF/KAnF/AHS2V0Rqc6BirMWQz9JmirnFpOCkaiQsewcG/5SyGriXqVfQixipjMRnqzcIP91wIRz+V71bqJRqiKwjT4Cg5Om6p5xTsw1mTMutPywNVcPPk7FcfxLAVG3aV/h1PbR+V4MWKHQUm6lUjZDSVpQ3VOJtb3+h7TMQIe9Z9YEms1S7Wyul0Qbw2bp3CY84voVnw+yksrfPMbrqTs6fzxkzfmz4m/t8PFRs6AKU0FVo+01A0Nev2kQurJfutZiOuNraTcItqwB1W0DvYL+fKdWiAFU/DEMVUDac2FEjC6HSqUGe5KSAih+WHXC2ovxc0AoeIDAw1HenxsPnJpNPda3zkos8TuqFAU7VTiqEE/P/CqvKNIum8WaG2qDIm4wBa0YcjGiN/c1+2E9MbI2geP/v94JUu7+TcYTrDOmI+4sw2fTBG+0oVv7f6bPDKTv0gwJCLcXTntlv4bKeqmTsOJD/CcNVzbutCMFL9y6Xlw/fMj+BJ+9G3yFsYFAc65erjmjc9En0lIF1MV75TKdlaD/moEjzTyguyRlWRatVzSMrgBa+uwtxwoEFK9GrWyJOQ="
12+
email: "botframework@microsoft.com"
13+
on:
14+
branch: master
15+
skip_cleanup: true
16+
tag: master
17+
- provider: npm
18+
api_key:
19+
secure: "W24mXQs7PztN6beyuVo2tLap4Lzu/xwWYocWg+HCOh8P86rlHpNSAZ3vU1QxuFTApaykimenE2m8Q62nz9wcCc++BvTZ1N5bDH63nzPF/KAnF/AHS2V0Rqc6BirMWQz9JmirnFpOCkaiQsewcG/5SyGriXqVfQixipjMRnqzcIP91wIRz+V71bqJRqiKwjT4Cg5Om6p5xTsw1mTMutPywNVcPPk7FcfxLAVG3aV/h1PbR+V4MWKHQUm6lUjZDSVpQ3VOJtb3+h7TMQIe9Z9YEms1S7Wyul0Qbw2bp3CY84voVnw+yksrfPMbrqTs6fzxkzfmz4m/t8PFRs6AKU0FVo+01A0Nev2kQurJfutZiOuNraTcItqwB1W0DvYL+fKdWiAFU/DEMVUDac2FEjC6HSqUGe5KSAih+WHXC2ovxc0AoeIDAw1HenxsPnJpNPda3zkos8TuqFAU7VTiqEE/P/CqvKNIum8WaG2qDIm4wBa0YcjGiN/c1+2E9MbI2geP/v94JUu7+TcYTrDOmI+4sw2fTBG+0oVv7f6bPDKTv0gwJCLcXTntlv4bKeqmTsOJD/CcNVzbutCMFL9y6Xlw/fMj+BJ+9G3yFsYFAc65erjmjc9En0lIF1MV75TKdlaD/moEjzTyguyRlWRatVzSMrgBa+uwtxwoEFK9GrWyJOQ="
20+
email: "botframework@microsoft.com"
21+
on:
22+
tags: true
23+
skip_cleanup: true
24+
- provider: releases
25+
api_key:
26+
secure: "KauO88Sy2l65xZl5zWgj3YB8wyEV/xfio6yFzTjCTKTqJ+TTfyRzRCsD0fvfMqX+jT90o48dvLvhtw3aOyBmN6zA4o+YsOKFQwa4881gdtJDAv0hLhW6h3CkT+zlbTfIGyLAfQDNyLFDo0VSKKaQ6h/gRp1kgfiFWmisfaDgYRkAyPsC3hhjV66TgCoMbBW+jyqJhvgxTKwJTRuond5/vu4JANd/Emdmn1AqKQoIzVDSJ76sSQIq+tu+kUm/jYm4wO+suLeI69EovRIcS9SPV52N7hiMDAP1eRlOCeNXiB4vIsbShVtJhiFjXBh8fmwVXhV/eSmk1Anqmqt3KVoFwN92yRpC0dLZDzMlUqUQ2yTOKrYSXKoZBYKeHVhDPiztxOi3yWrAh8owA1TnRLt/6GC9pCHS1Xv2eechzdZ7IhXOkDm2GK8uyH1io6xHAdfhCvXTwH3CrQtt7qZrdPFYG2cq4UEdzGVI+PEx3revGCmCtwsZRJ0n1P5TSpEJmtUYkcz26YqfIAoh1KNT2LRWBaZv5dDBxQ49aAua4O79l5+6He9dilt7R+sNGOLO0JXBJylZUH/FfkKe9bPNuVCITLPu18llL73z7DKBq/qQLkmc2FLmLzq8nSZbu7Gq5VWNYuuvNl5w0ljqaV+PaDYaogntdkR6RukBklJ9fasQCHs="
27+
on:
28+
tags: true
29+
skip_cleanup: true

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# BotFramework-DirectLineJS
22

3+
[![Build Status](https://travis-ci.org/Microsoft/BotFramework-DirectLineJS.svg?branch=master)](https://travis-ci.org/Microsoft/BotFramework-DirectLineJS)
4+
35
Client library for the [Microsoft Bot Framework](http://www.botframework.com) *[Direct Line](https://docs.botframework.com/en-us/restapi/directline3/)* protocol.
46

57
Used by [WebChat](https://github.com/Microsoft/BotFramework-WebChat) and thus (by extension) [Emulator](https://github.com/Microsoft/BotFramework-Emulator), WebChat channel, and [Azure Bot Service](https://azure.microsoft.com/en-us/services/bot-service/).
@@ -10,7 +12,7 @@ Used by [WebChat](https://github.com/Microsoft/BotFramework-WebChat) and thus (b
1012

1113
Anyone who is building a Bot Framework JavaScript client who does not want to use [WebChat](https://github.com/Microsoft/BotFramework-WebChat).
1214

13-
If you're currently using WebChat, you don't need to make any changes as it includes this package.
15+
If you're currently using WebChat, you don't need to make any changes as it includes this package.
1416

1517
### *What is that funny `subscribe()` method in the samples below?*
1618

@@ -50,7 +52,7 @@ This library uses RxJs/AjaxObserverable which is meant for use in a DOM environm
5052
```typescript
5153
global.XMLHttpRequest = require("xhr2");
5254
```
53-
55+
5456
## How to create and use a directLine object
5557

5658
### Obtain security credentials for your bot:
@@ -143,8 +145,8 @@ directLine.connectionStatus$
143145
If your app created your DirectLine object by passing a token, DirectLine will refresh that token every 15 minutes.
144146
Should your client lose connectivity (e.g. close laptop, fail to pay Internet access bill, go under a tunnel), `connectionStatus$`
145147
will change to `ConnectionStatus.ExpiredToken`. Your app can request a new token from its server, which should call
146-
the [Reconnect](https://docs.botframework.com/en-us/restapi/directline3/#reconnecting-to-a-conversation) API.
147-
The resultant Conversation object can then be passed by the app to DirectLine, which will
148+
the [Reconnect](https://docs.botframework.com/en-us/restapi/directline3/#reconnecting-to-a-conversation) API.
149+
The resultant Conversation object can then be passed by the app to DirectLine, which will
148150

149151
```typescript
150152
var conversation = /* a Conversation object obtained from your app's server */;

0 commit comments

Comments
 (0)