-
Notifications
You must be signed in to change notification settings - Fork 207
/
Copy path.travis.yml
50 lines (45 loc) · 1.43 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
dist: xenial
language: generic
branches:
only:
- master
git:
depth: false
quiet: true
before_install:
- git config --global core.quotepath false
- git config --global user.email "[email protected]"
- git config --global user.name "darksun"
- 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 -y
- emacs-snapshot --version
script:
- ~/habash/habash up "翻译Emacs文档"
- export REPO=$(git remote -v |grep fetch |head -n 1|awk '{print $2}')
- git clone -b master ${REPO} ~/source
- git clone -b gh-pages ${REPO} ~/web
- emacs-snapshot --batch -l ./auto_publish.el
- echo -e $TRAVIS_PRIVATE1 >~/.ssh/id_rsa && chmod 600 ~/.ssh/id_rsa
- wc -l ~/.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 [email protected]:lujun9972/emacs-document.git
- cd emacs-document && ./generate_index.sh >README.org
- git commit -a -m "update README" || exit 0
- git push origin master
deploy:
provider: pages
skip_cleanup: true
keep_history: true
github_token: $GITHUB_TOKEN
local_dir: /home/travis/web
target_branch: gh-pages
on:
branch:
- master