forked from ankurk91/vue-flatpickr-component
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (36 loc) · 808 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
38
39
40
41
42
43
44
45
46
dist: xenial
language: node_js
node_js:
- "10"
# Install specific version
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.12.3
- export PATH="$HOME/.yarn/bin:$PATH"
install:
- yarn install --non-interactive
script:
- yarn test --ci --verbose
- yarn run build
after_success:
- bash <(curl -s https://codecov.io/bash) -e TRAVIS_NODE_VERSION
# Monitor only these branches
branches:
only:
- master
- dev
# $HOME/.cache/yarn
cache:
yarn: true
# https://docs.travis-ci.com/user/deployment/pages/
before_deploy:
- npm run docs
- echo '# Live examples' > docs/README.md
deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
keep-history: false
target-branch: 'gh-pages'
local-dir: 'docs'
on:
branch: 'master'