forked from arthurvasconcelos/vue-izitoast
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
84 lines (72 loc) · 1.64 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
75
76
77
78
79
80
81
82
83
84
os: linux
language: node_js
node_js:
- 12
addons:
apt:
packages:
- libgconf-2-4
env:
global:
CC_TEST_REPORTER_ID=$CODE_CLIMATE_ID
cache:
npm: true
directories:
- ~/.cache
stages:
- tests
- build
- name: deploy-gp-pages
if: tag IS present
- name: deploy-npm-package
if: tag IS present
install:
- npm ci
jobs:
include:
- stage: tests
name: E2E Test
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script:
- npm run instrument
- npm run ci
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
- stage: build
name: Build package and storybook
script:
- npm run build
- npm run storybook:build
- stage: deploy-gp-pages
name: Deploy Storybook to GH Pages
script: skip
before_deploy:
- npm run storybook:build
deploy:
- provider: pages
skip_cleanup: true
local_dir: './storybook-public'
github_token: $GITHUB_TOKEN
on:
all_branches: true
tag: true
- stage: deploy-npm-package
name: Deploy to NPM
script: skip
before_deploy:
- npm run build
deploy:
- provider: npm
skip_cleanup: true
email: $NPM_AUTH_EMAIL
api_key: $NPM_AUTH_TOKEN
on:
all_branches: true
tag: true
notifications:
email:
on_success: never
on_failure: change