forked from vuematerial/vue-material
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (45 loc) · 2.06 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
language: node_js
node_js:
- '8'
sudo: false
env:
global:
- NODE_ENV="CI"
- CC_TEST_REPORTER_ID=8e14ec33d4a45de3a712db3dcdbef17329465c636cd58e740d871e29b5a121f0
- secure: n8S9oRQc7C9vq6UsQKFS3dclz83GohtPH5iF0xUkOurhgIrZ8NwFtxYNoi5BDHuxCo/HdVd1vN8hKBcyPdsuVZstvA39O8xbtdDs+pgDAPDmoVLCkEK10yva+aYvf8fdleJi40mcoucgtWCBYkOwMZlbBqwNZ7pf9CT3QMzjvbnC7skP1A5Ju0PXm43eFgZ8OEBWEd0qHl8cFIwOljWcYcwErdcq9Xo0VNwbp8cELTAM+GkNbGLtSJmArG3dkGxb1MINb+FkjjW94j2oF3U1QjbdTvQ2f/gbrrg0i9el+T1mLdukGoaZRpG3LzBTYs9e37MyIqgIm3kwCwjYTJP4Uqv9cI6egSnBDsuQ314LEyKkQeYFIXzeKEoNJ8PnROY20TjFmoAvNoA09hbgdrfcCALn5Tpp6PjayD0pb7+HWSfY0tEqJsLWzArRsKRXSozYud8sDMyySyQTAtAG4AxsDR5+wFz1T7faZP61JJulHJYZY5UbmjDPe8FHUq8SNrxwOFYa59jb1yCyGftTgWfLCNrYL9JOw0jMPTVuCeo94l0yCF5N8Mo18iYnnZd/6btWR0OO7Q3CgPJQGUMxLx6UhfYiIlhDq4OKsAEUD/+ZQDfWueM0lmHyn3tsRi9bVwNvf5HlFYkgc5x4UbkGUsCQUjM8ceoKlnfhup72fyWesQI=
addons:
code_climate:
repo_token: 8e14ec33d4a45de3a712db3dcdbef17329465c636cd58e740d871e29b5a121f0
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash -s
- export PATH="$HOME/.yarn/bin:$PATH"
- yarn -v
- npm i -g npm
install:
- yarn add --dev --ignore-scripts babel-cli
- yarn --ignore-scripts
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 lint
- yarn coverage
- yarn build
after_success:
- if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT; fi
- yarn changelog
- RELEASE_NOTES=`cat RELEASE_NOTES.md`
- PACKAGE_VERSION=$(grep '"version":' package.json | cut -d\" -f4)
- yarn github-release -- delete \
--owner=vuematerial \
--repo=vue-material \
--tag="v${PACKAGE_VERSION}" \
--name="v${PACKAGE_VERSION}"
- yarn github-release -- upload \
--owner=vuematerial \
--repo=vue-material \
--tag="${PACKAGE_VERSION}" \
--name="v${PACKAGE_VERSION}" \
--body="v${RELEASE_NOTES}"
- rm -rf RELEASE_NOTES.md CHANGELOG.md