-
Notifications
You must be signed in to change notification settings - Fork 77
/
.travis.yml
49 lines (49 loc) · 1.17 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
language: node_js
node_js: 15.11.0
cache: npm
dist: trusty
git:
depth: false
script:
- npm run build
jobs:
include:
- stage: Lint commit message
script: commitlint-travis
- stage: Lint and Test
script: npm run lint && npm run size
-
script: npm run test:coverage && npm run test:coveralls
-
script: npm run test:storybook
- stage: Pre-release
if: branch = main AND type != pull_request
before_deploy:
- git checkout main
- bash ./ci-scripts/setup-npm.sh
deploy:
- provider: script
script: bash ./ci-scripts/publish-rc.sh
skip_cleanup: true
on:
all_branches: 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 main
- 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#react-automated