-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (27 loc) · 1.37 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
language: node_js
node_js:
- '6'
cache:
directories:
- node_modules
install: npm install
before_script:
- git config --global user.name "bubkoo"
- git config --global user.email "bubkoo.wy@gmail.com"
- git config --global push.default simple
- git clone https://${GH_TOKEN}@${GH_REF} ${DIR}
script:
- npm run lint
- npm run build
- cd ${DIR} && git pull && rm -rf ${TAR} && mkdir ${TAR} && cd ../
- cp -PR dist/* ${DIR}/${TAR}
- cd ${DIR} && git add -A .
- MESSAGE=` date +\ %Y-%m-%d\ %H:%M:%S`
- git commit -m "Updated by travis-ci:${MESSAGE}"
- git push
env:
global:
- DIR: site
- TAR: todo
- GH_REF: github.com/mickeyjsx/mickeyjsx.github.com.git
- secure: 3pv2ZccUu/p+BehvgXlaKnPTZHSjeNJns59N+8I4XMctEtl/Wc/YxRZZ6pxafPDiBNvn74mov2jCsnCXmp29Nm72kamjZOQHw03N7Qa8mAnshvx5TtuINjPHkToP2PWEJfDxupFJwu8FdkLv/ry9PL2aHSWQvdT4TeUWA6rmQJRTj7oj6vQm7fMyjyQpW0S+g8tOrgC8R4jnCSjDu37Y/5YvIzmnra/4ZYow2j6hgHakWyQ9OUrxAYwFZAn6cyydWyguQtPxUVXDceSlADzqxdoQ/5UK3I+P17IsajxMRN+7vVjvsBJwVZHeUo3VDSK+AFG7BV8a9eJrE/DcdetjVp7bulaekloE4X1V3P6ZtScr9ayIyQJ8XYNQXZvk5UkUgoqFFXJ5SVP4K5g6o0864vJJWFmztkWnz0CRG86Yri8q33ZmCCSApzNAi5CErsk9ssfDx2DJtD0+kvpjwGlqJlVxcMHVkL+mBh8kJJVWkU35vYkMogU+EJ2UPlAf2GOURDCmpGzpFEX04uJ6ktAy1faoASmz3VlM1uI4nTmhRg0+EGApGx9b/1K6xWo/Ye9ty+e4HTexIDx/PNVh/H9KOz1z8ZWsZOKv+3rUQEIAcAq4qgUQ+SgXFF0elAK4oO6Km8ix6mPukh/Ag4HiPry5bn8U5JWnCF93PtOLitLgI2s=