-
Notifications
You must be signed in to change notification settings - Fork 18
/
.travis.yml
46 lines (42 loc) · 1.51 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
# Copyright Contributors to the Open Cluster Management project
language: node_js
node_js: '14'
install: npm ci --no-optional
addons:
sonarcloud:
organization: 'open-cluster-management'
jobs:
include:
- stage: Pull Request
if: type = pull_request
script: npm run build && npm test
- stage: Publish
if: type = push AND branch = main AND fork = false
script:
- set -e # Exit immediately if a command returns a non-zero status.
- npm test
- sonar-scanner
- npm run build
- npm run build:storybook
- scripts/create-release.sh minor "$TRAVIS_COMMIT_MESSAGE"
- scripts/publish-package.sh
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
keep_history: true
local_dir: storybook-static
on:
branch: main
- stage: Patch
if: type = push AND branch =~ /^v\d+\.\d+\.z$/ AND fork = false
script:
- set -e # Exit immediately if a command returns a non-zero status.
- npm test
- npm run build
- scripts/create-release.sh patch $TRAVIS_COMMIT_MESSAGE
- scripts/publish-package.sh $TRAVIS_BRANCH
- stage: Dependency Upgrade
if: type = cron AND branch = main
install: echo skip install
script: scripts/update-dependencies.sh