-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
48 lines (48 loc) · 1.6 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
47
48
language: node_js
node_js:
- 5.0.0
branches:
only: 'master'
before_install:
- npm install -g bower coffee-script browserify
before_script:
- bower update
- npm run build
script:
- echo "nothing"
after_script:
- mkdir tmp
- mkdir tmp/demo
- mkdir tmp/dist
- mkdir tmp/nar
- \cp -f -R demo/* tmp/demo
- \cp -f -R dist/* tmp/dist
- \cp -f -R nar/* tmp/nar
- git stash
- rm -rf bower_components
- git config remote.origin.fetch "+refs/heads/gh-pages:refs/remotes/origin/gh-pages"
- git fetch origin gh-pages
- git checkout gh-pages
- bower update
- git add bower_components/bluebird/js/browser/bluebird.min.js
- git add bower_components/encoding-japanese/encoding.min.js
- git add bower_components/jszip/dist/jszip.min.js
- git add bower_components/narloader/NarLoader.js
- git add bower_components/ikagaka.sakurascriptplayer.js/dist/SakuraScriptPlayer.js
- \cp -f -R tmp/demo/* demo
- \cp -f -R tmp/dist/* dist
- \cp -f -R tmp/nar/* nar
- git add demo
- git add dist
- git add nar
- git status
- git commit -am "travis-auto-update"
- git ls-files
- '[ "$TRAVIS_BRANCH" == "master" ] && [ $GH_TOKEN ] && git push --quiet "https://${GH_TOKEN}@github.com/Ikagaka/cuttlebone.git" gh-pages:gh-pages > /dev/null 2>&1'
env:
global:
- GIT_COMMITTER_NAME=legokichi
- GIT_AUTHOR_NAME=legokichi
- secure: "Qb4ImvPXMDvTX4tVQ16BxfaZZ8NUGWFsmwDT/Zgb4L2rWT8mPb4SXPe9wjazmzqW9AdxnQ4V1reuVfVhIxcu21nxzYDxnc1+IyJ4dhISRoi80994iOfhllfjztZLUDzRZBcyO475IEgpD+v2V5KzAbafpfoZRLgemIxFQmjvhOw="