forked from SAP/fundamental-ngx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (41 loc) · 1014 Bytes
/
.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
language: node_js
node_js: 10.15.0
cache: npm
dist: trusty
git:
depth: false
script:
- npm run build
jobs:
include:
- stage: Lint and Test
script: npm run test && npm run test:coveralls && npm run build-pack-library
- stage: Pre-release
if: branch = master
before_deploy:
- git checkout master
- bash ./ci-scripts/setup-npm.sh
deploy:
- provider: script
script: bash ./ci-scripts/publish-rc.sh
skip_cleanup: true
- stage: Release
if: branch = tmp_branch_for_automated_release_do_not_use
before_deploy:
- git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
- git fetch
- git checkout master
- bash ./ci-scripts/setup-npm.sh
deploy:
- provider: script
script: bash ./ci-scripts/publish.sh
skip_cleanup: true
on:
all_branches: true
notifications:
email:
on_failure: always
on_success: change
slack:
rooms:
- ui-fundamentals:zVRyxlqkYnQFD7p8QHkWM8Fd#ngx-automated