-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.travis.yml
45 lines (45 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
sudo: false
language: node_js
node_js:
- '10.0.0'
before_install:
- npm i -g npm@6.4.1
- npm install -g typescript
stages:
- test
- name: publish-edge
if: (NOT type IN (pull_request)) AND (branch = develop)
- name: publish-latest
# Travis assigns the tag to branch for some reason. This matches any valid semver version.
if: branch =~ ^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)$
jobs:
include:
- stage: test
name: "Lint and Test"
script:
- yarn lint
- 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: "Y5/QLqEthobAVHPhVvuYmMoLmMzDtX3e0DSLvvLxf9ncYSn3gp2qC/nntkm8D85bHeCtGMjCoFudatCxG4oIWOB45IpXG/+3GWelVIG9GH2iiDMwY3wBSNVzDjnN/FsPA0+P01X9Hr9V3Om5vH6WXoK4yc1HoSD2yPBcRYHnhUrVat+Pokw0CQa26DH9WxvWDm8IGxJiLEI+4E7LzdWe2CK+rAgDwPKMs8wFwpOjq/FJX4amtjWqGHla3XU0AwR5E/2y6bzQseTSjBHY+Dh0KYfPOVvvyXpOwcUImBVANr7XB89wZ0Jy56ohTu1It0jMTr+r7sWKu4s7GUjpTNSam7sJhphmTguVyA634HwhjT4Uj5oSuUNIHhtobvH6y0ZnLix1Bi4lKsSjfCZ/A3vycOJ/dfBqgt7CpOCBE4i0vtLi0WoxyJG/9yr4xdo4V4JlTxGZGaK4xDNhISyk/eedODY96kqz5QnyvwuE3oN7AWNeKCXCB9prqdZWuoBoPhx1fPk0+kiPxPcyzZRSiqUvRZGX0LX5dt9iaSIQfWtFYMUCc0aLyJFxYYIoaDvsewGjluSJ1aUQIkzDZ13BXbrpg1gxhJLzHs6bPrTQRKbeMQTYIdE9tc5lPnFEhJ4zJ+MPjVXa5CwYggUe3j4p+8pVP86Fs/F5ETcPLzwjpd+T898="