forked from stolostron/ui-components
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (36 loc) · 1.06 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
language: node_js
node_js: '12'
install: npm ci --no-optional
addons:
sonarcloud:
organization: 'open-cluster-management'
jobs:
include:
- stage: Pull Request
if: type = pull_request
script:
- npm test &&
npm run lint &&
npm run check &&
npm run build &&
npm run build:storybook
- stage: Build and Publish
if: type = push AND branch = master
script:
- npm test &&
npm run build &&
npm run build:storybook &&
scripts/publish.sh &&
sonar-scanner
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
keep_history: true
local_dir: storybook-static
on:
branch: master
- stage: Automated Dependency Upgrade
if: type = cron AND branch = master
install: echo skip install
script: scripts/update.sh