-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (40 loc) · 1.57 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
sudo: false
language: node_js
stages:
- test
- name: publish-edge
if: "(NOT type IN (pull_request)) AND (branch = develop)"
- name: publish-latest
if: branch =~ ^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)$
jobs:
include:
- stage: test
name: Lint, Build, and Test
script:
- yarn lint
- yarn build
- yarn test
- stage: publish-edge
name: Publish @edge to NPM
script:
- yarn build
deploy:
provider: script
skip_cleanup: true
script: "./scripts/publish-edge.sh"
on:
branch: develop
- stage: publish-latest
name: Publish @latest to NPM
script:
- yarn build
deploy:
provider: script
skip_cleanup: true
script: "./scripts/publish-latest.sh"
on:
all_branches: true
condition: "$TRAVIS_TAG =~ ^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"
notifications:
webhooks:
secure: FrWUleN0/IoOE2lPK7/YBZEvq79D8dOIN0+T3M/yR4NaVIuwG9T5e1zswEbPw0xTu03FT3hH8almw7/UEj2vAgP2KdvjeHPR1/EQOC0h0hqS5DMEYlnaXbUxoB93iQAU9wwVpa3DuiEqXQKac0nMdW+FWs/2xGpwJF0SlhzF6H/kb+/VUF+0ZngjJZFB/yXn7MI7uGuTfpbAGRSUL9MAXiXUSIxtcd4GzPS3roS0zGILDoBUljfnyuJltZdjjghdhBuNSVtGa2mI5nUpp6ulPhVDrqB9DeBo0OIiSPTJjKzPlNjB7cYLwrd4PFVj6wR2FvJe5HExKIwdSLi/ExAo1ncJ9kvsbf63SmNs9GLMSMkWhD68JFoe4tEA9cggq3WO8AB/cWmJEC5NVMdqeNh86KH1PVn8eZgwtdKsKunloe1I7NPPia/fWlraY7FYLHqb3qOYuniLDzfiJ0JkQivgXWvHaF0xDsf7BH8czBMKFkQmNXBd2FwfAzneIOyYipFpfTWWjFnTq4KsbLuLYgrZ/nRaiLu02hHY6DZT0Ec3SkMHjuwhHvCTTyC+nFQl1OVZnm08br0fItVDGFp7hOIXeqicXUO3GtEITlO8s7qUPiw6SnSUW+B7u8e1MAtjXjVriHseHO9g+PJ4IbNY8rVwDvvSTQM1R4T29Or8OocJpzA=