-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (45 loc) · 1.33 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
branches:
only:
- source
language: ruby
rvm:
- 1.9.3
before_script:
# Set the git config stuff, so Git stops yelling at us
- git config --global user.name "temp"
- git config --global user.email "[email protected]"
# Set read-write git origin
- git remote set-url origin $REPO.git
# Unpack ssh key for git
#- echo -n $id_rsa_{00..30} >> ~/.ssh/id_rsa_base64
#- base64 --decode --ignore-garbage ~/.ssh/id_rsa_base64 > ~/.ssh/id_rsa
#- echo $id_rsa_ > ~/.ssh/id_rsa
- cp id_rsa ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
- chmod 755 ~/.ssh/
# Disable SSH server fingerprint verification
- echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
# Set deployment target to github pages.
- rake setup_github_pages[$REPO]
# To reset the 'url' to the custom domain in '_config.yml'
- git checkout -- _config.yml
#- cat /home/travis/.ssh/id_rsa
script:
# Generate site
- rake generate
after_script:
# Deploy!
- rake deploy
#- cp .travis.yml _deploy/
#- cd _deploy
#- echo blog.geeku.org>CNAME
#- ls -a
#- git add .
#- git commit -m "commit by travis"
#- git push --force --progress "origin" master:master
env:
global:
# Repo read-write address
- REPO="[email protected]:ReZELChan/rezelchan.github.com"
# SSH key. Encoded. See https://gist.github.com/4631240
#- id_rsa_=|