forked from vuetifyjs/vuetify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
56 lines (50 loc) · 1.4 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
language: node_js
node_js: '8'
cache:
yarn: true
install:
- yarn --frozen-lockfile --non-interactive
stages:
- 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)
jobs:
include:
- stage: test
before_script:
- npm i codecov -g
script:
- yarn run lint
- yarn run test:coverage -i
after_script:
- codecov
- stage: test
script: yarn run build
- stage: deploy
before_script:
- npm i codecov -g
script:
- yarn run lint
- yarn run test:coverage -i && codecov
- yarn run build
- rm -rf release
- mkdir -p release
- for file in ./dist/*; do cp "$file" "${file/dist\/vuetify/release/vuetify-${TRAVIS_TAG}}"; done
- zip -jr "release/vuetify-${TRAVIS_TAG}.zip" release/*
deploy:
- provider: npm
email: "[email protected]"
api_key: $NPM_API_KEY
tag: $(node ./build/parse-npm-tag.js ${TRAVIS_TAG})
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