forked from SAP/fundamental-ngx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
74 lines (73 loc) · 2.11 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
language: node_js
sudo: required
node_js: 12.13.1
cache: npm
dist: trusty
addons:
chrome: stable
git:
depth: false
script:
- npm run build-all
jobs:
include:
- stage: "Lint and Test"
before_script: export NODE_OPTIONS='–--max_old_space_size=4096'
script: npm run lint && npm run test && npm run test:coveralls && npm run build-pack-library
- stage: "Pre-release"
if: branch = master
before_script: export NODE_OPTIONS='–--max_old_space_size=4096'
before_deploy:
- git checkout master
- bash ./ci-scripts/setup-npm.sh
deploy:
- provider: script
script: bash ./ci-scripts/publish.sh
skip_cleanup: true
- stage: "Archive-pre-release"
if: branch = archive-ngx-core-ng*
before_script: export NODE_OPTIONS='–--max_old_space_size=4096'
before_deploy:
- git checkout archive-ngx-core-ng7
- bash ./ci-scripts/setup-npm.sh
deploy:
- provider: script
script: bash ./ci-scripts/publish.sh
skip_cleanup: true
on:
all_branches: true
- stage: "Release"
if: branch = tmp_branch_for_automated_release_do_not_use
before_script: export NODE_OPTIONS='-–-max_old_space_size=4096'
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
- stage: "Archive-release"
if: branch = archive_tmp_branch_for_automated_release_do_not_use
before_script: export NODE_OPTIONS='–--max_old_space_size=4096'
before_deploy:
- git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
- git fetch
- git checkout archive-ngx-core-ng7
- 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