-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
63 lines (53 loc) · 1.23 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
dist: bionic
os:
- linux
language: node_js
node_js:
- '13'
addons:
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
cache:
directories:
- node_modules
install: travis_retry npm install
script:
- echo $TRAVIS_OS_NAME
- node --version
- npm --version
- ng --version
- npm test
stages:
- test
- name: deploy
if: (type = push) AND branch =~ ^(master|v\d+\.\d+)$
jobs:
include:
- stage: deploy
script:
- echo "Packing NgModule ..."
- if ./scripts/development-release.ts; then ./scripts/package-publish-config-tag-next.ts; fi
- npm run build
- echo "Deploying to NPM ..."
before_deploy:
- cd dist/
deploy:
provider: npm
email: [email protected]
api_key: "$NPM_TOKEN"
skip_cleanup: true
on:
all_branches: true
notifications:
email:
on_success: change
on_failure: change
webhooks:
urls:
- https://webhooks.gitter.im/e/41a19fbf1d54a04e5217
on_success: always # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: never # options: [always|never|change] default: always