This repository has been archived by the owner on Dec 17, 2019. It is now read-only.
forked from vuetifyjs/vuetify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
95 lines (84 loc) · 2.9 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
85
86
87
88
89
90
91
92
93
94
95
language: node_js
node_js: '12'
notifications:
webhooks: https://www.travisbuddy.com/?insertMode=update&only=failed,errored
cache:
yarn: true
directories:
- node_modules
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.15.2
- export PATH="$HOME/.yarn/bin:$PATH"
install:
- yarn --frozen-lockfile --non-interactive
stages:
# - name: kitchen
# if: (branch = master) AND (type = push) AND (repo = vuetifyjs/vuetify)
- name: test
if: (tag IS blank) OR (type != push) OR (repo != vuetifyjs/vuetify)
- name: deploy
if: (tag IS present) AND (type = push) AND (repo = vuetifyjs/vuetify)
- name: publish-docs-live
if: (branch = master) AND (type = push) AND (repo = vuetifyjs/vuetify)
- name: publish-docs-dev
if: (branch = dev) AND (type = push) AND (repo = vuetifyjs/vuetify)
- name: publish-docs-next
if: (branch = next) AND (type = push) AND (repo = vuetifyjs/vuetify)
jobs:
include:
- stage: test
name: 'Lint and test'
before_script:
- yarn global add codecov
script:
- cd packages/vuetify
- yarn build:lib
- cd ../..
- yarn run lint
- lerna run test:coverage -- -i
after_script:
- codecov
# - stage: kitchen
# before_script: yarn global add now
# script:
# - cd packages/kitchen
# - yarn build
# - now --team=vuetifyjs --token=$NOW_TOKEN --npm
# - now alias --team=vuetifyjs --token=$NOW_TOKEN
- stage: deploy
before_script:
- yarn global add codecov
script:
- lerna run test:coverage --scope vuetify -- -i && codecov
- lerna run build --scope vuetify
- lerna run lint --scope vuetify
- rm -rf release
- mkdir -p release
- for file in ./packages/vuetify/dist/*; do cp "$file" "${file/packages\/vuetify\/dist\/vuetify/release/vuetify-${TRAVIS_TAG}}"; done
- zip -jr "release/vuetify-${TRAVIS_TAG}.zip" release/*
deploy:
- provider: script
script: bash scripts/deploy.sh
skip_cleanup: true
on:
repo: vuetifyjs/vuetify
tags: true
- provider: releases
api_key: $GITHUB_API_KEY
file: "release/vuetify-${TRAVIS_TAG}.zip"
skip_cleanup: true
on:
repo: vuetifyjs/vuetify
tags: true
- stage: publish-docs-live
name: 'Publish docs - live'
before_script: yarn global add now
script: travis_wait node scripts/deploy-and-alias.js vuetifyjs.com
- stage: publish-docs-dev
name: 'Publish docs - dev'
before_script: yarn global add now
script: travis_wait node scripts/deploy-and-alias.js dev.vuetifyjs.com
- stage: publish-docs-next
name: 'Publish docs - next'
before_script: yarn global add now
script: travis_wait node scripts/deploy-and-alias.js next.vuetifyjs.com