-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy path.travis.yml
52 lines (47 loc) · 1.57 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
49
50
51
52
dist: xenial
language: generic
branches:
only:
- source
git:
depth: false
quiet: true
before_install:
- git config --global user.email "[email protected]"
- git config --global user.name "darksun"
- git config --global core.quotepath false
- git clone https://github.com/nasfarley88/habash ~/habash
- git clone https://github.com/lujun9972/EGO ~/EGO
- sudo add-apt-repository ppa:ubuntu-elisp/ppa -y
- sudo apt-get update
- sudo apt-get install emacs-snapshot curl jq -y
- emacs-snapshot --version
script:
- echo -e $TRAVIS_PRIVATE >~/.ssh/id_rsa && chmod 600 ~/.ssh/id_rsa
- echo "Host github.com" >> ~/.ssh/config
- echo " Hostname github.com" >> ~/.ssh/config
- echo " StrictHostKeyChecking no" >> ~/.ssh/config
- echo " CheckHostIP no" >> ~/.ssh/config
- echo " UserKnownHostsFile=/dev/null" >> ~/.ssh/config
- git clone https://github.com/lujun9972/csdn-publish.el ~/csdn-publish
- git clone https://github.com/lujun9972/toutiao.el ~/toutiao
- git clone [email protected]:lujun9972/lujun9972.github.com.git ~/lujun9972.github.com
- export REPO="[email protected]:lujun9972/lujun9972.github.com.git"
- git clone -b source ${REPO} ~/source
- git clone -b master ${REPO} ~/web
- cd ~/source
- emacs-snapshot --batch -l ./auto_publish.el
- ./generate_index.sh >README.org
- git commit -a -m "[skip travis] update README" || true
- git push origin source
- ~/habash/habash up "写博客"
deploy:
provider: pages
skip_cleanup: true
keep_history: true
github_token: $GITHUB_TOKEN
local_dir: /home/travis/web
target_branch: master
on:
branch:
- source