Add: travis ci config

This commit is contained in:
Dreamacro 2018-08-29 23:25:35 +08:00
parent 682e5fe213
commit 37739d7f44

22
.travis.yml Normal file
View File

@ -0,0 +1,22 @@
language: node_js
sudo: false
node_js:
- "stable"
cache:
directories:
- "$HOME/.npm"
install:
- "npm ci"
script:
- "npm run lint"
before_deploy:
- "npm run build"
deploy:
provider: pages
skip-cleanup: true
local-dir: dist
github-token: $GITHUB_TOKEN
on:
repo: Dreamacro/clash-dashboard
branch: master
tags: true