forked from vuetifyjs/vuetify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (39 loc) · 1.07 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
language: node_js
node_js:
- "8"
env:
global:
- CC_TEST_REPORTER_ID=b429c71716cd1302821cad1fdc0dd6ea964144ec975e3aad40cbaf1235afb775
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:
- yarn
- yarn run lint
- yarn run test:coverage
- yarn run build
after_success:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
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: "john.j.leider@gmail.com"
api_key: $NPM_API_KEY
tag: $(node ./build/parse-npm-tag.js)
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