forked from vuetifyjs/vuetify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (32 loc) · 806 Bytes
/
.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
language: node_js
node_js:
- "8"
before_script:
- npm i codecov -g
script:
- yarn --frozen-lockfile --non-interactive
- yarn run lint
- yarn run test:coverage && codecov
- yarn run build
cache:
yarn: true
before_deploy:
- 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:
tags: true