forked from microsoft/BotFramework-WebChat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
85 lines (68 loc) · 1.72 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
sudo: required
language: node_js
node_js:
- "10"
services:
- docker
before_install:
- npm ci
- sudo apt-get install jq
- npx version-from-git --travis
- git checkout -b temp-ci
- lerna version --exact --force-publish --no-git-tag-version --no-push --yes `cat package.json | jq -r .version`
install:
- npm run bootstrap
- npm run build
- npm run prepublishOnly
- docker build -f Dockerfile-playground -t webchat.azurecr.io/playground .
- npm run build:sample
script:
- docker-compose up --build -d
- docker-compose exec webchat ls -la
- npm test -- --coverageReporters=lcov --coverageReporters=text --maxWorkers=1
# Enable Docker log if investigation is needed
# - docker-compose logs
- docker-compose down --rmi all
- npm run coveralls
# Upload image snapshots to build artifact curator
- zip -r image-snapshots __tests__/__image_snapshots__/
- curl -T image-snapshots.zip https://webchat-curator.azurewebsites.net/upload
before_deploy:
- git config --local user.name "Bot Framework"
- git config --local user.email "botframework@microsoft.com"
deploy:
- provider: script
script: bash scripts/deploy_pages
skip_cleanup: true
on:
branch: master
- provider: script
script: bash scripts/deploy_cdn
skip_cleanup: true
on:
branch: master
- provider: script
script: bash scripts/deploy_cdn
skip_cleanup: true
on:
tags: true
- provider: script
script: bash scripts/lerna_publish
skip_cleanup: true
on:
branch: master
- provider: script
script: bash scripts/lerna_publish
skip_cleanup: true
on:
tags: true
- provider: script
script: bash scripts/docker_push
on:
branch: master
- provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
local-dir: gh-pages
on:
branch: master