-
Notifications
You must be signed in to change notification settings - Fork 32
/
.travis.yml
51 lines (51 loc) · 1.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
language: node_js
os:
- linux
node_js: 12.18.4
cache: yarn
dist: trusty
git:
depth: false
before_install:
- yarn install
script:
- yarn lint
- yarn build:docs
- yarn build
jobs:
include:
- stage: Lint commit message
script: commitlint-travis
- stage: Lint and Test
script: yarn lint && yarn test
- stage: Pre-release
if: branch = main
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#vue-automated