-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy path.travis.yml
36 lines (36 loc) · 2.42 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
language:
- cpp
- python
python:
- "2.7"
compiler:
- gcc
notifications:
email:
recipients:
on_success: change
on_failure: always
env:
global:
- secure: "WiSX13xhIpfCPvY2GslvyHZ7A+sHtSRzm4xEmSgZSAxhGvui4oGGZPl9yJJj3w2qhlV02yb6QjjgDtrenXmUcKunsTbiNfVwWKCbeYRcT0bX+Y8HVVVpNA97SH/wQj+ocVRq54u3wfDS7aFuKCOzeOJwCTQGFW82/lFLriMY5AM="
dist: trusty
sudo: required
script: source .travis.sh
after_success:
- set +x
- export GIT_COMMITTER_NAME=$GIT_NAME
- export GIT_COMMITTER_EMAIL=$GIT_EMAIL
- export GIT_AUTHOR_NAME=$GIT_NAME
- export GIT_AUTHOR_EMAIL=$GIT_EMAIL
- echo "TRAVIS_REPO_SLUG=$TRAVIS_REPO_SLUG TRAVIS_PULL_REQUEST=$TRAVIS_PULL_REQUEST TRAVIS_BRANCH=$TRAVIS_BRANCH"
- if [ "$TRAVIS_REPO_SLUG" == "fkanehiro/simtrans" -a "$TRAVIS_PULL_REQUEST" == "false" -a "$TRAVIS_BRANCH" == "master" ]; then cd ~/; fi
- if [ "$TRAVIS_REPO_SLUG" == "fkanehiro/simtrans" -a "$TRAVIS_PULL_REQUEST" == "false" -a "$TRAVIS_BRANCH" == "master" ]; then git clone --branch gh-pages https://github.com/$TRAVIS_REPO_SLUG doc; fi
- if [ "$TRAVIS_REPO_SLUG" == "fkanehiro/simtrans" -a "$TRAVIS_PULL_REQUEST" == "false" -a "$TRAVIS_BRANCH" == "master" ]; then cd doc; fi
- if [ "$TRAVIS_REPO_SLUG" == "fkanehiro/simtrans" -a "$TRAVIS_PULL_REQUEST" == "false" -a "$TRAVIS_BRANCH" == "master" ]; then cp -r $TRAVIS_BUILD_DIR/doc/_build/html ./; fi
- if [ "$TRAVIS_REPO_SLUG" == "fkanehiro/simtrans" -a "$TRAVIS_PULL_REQUEST" == "false" -a "$TRAVIS_BRANCH" == "master" ]; then cp -r $TRAVIS_BUILD_DIR/doc/_build/html-ja ./; fi
- if [ "$TRAVIS_REPO_SLUG" == "fkanehiro/simtrans" -a "$TRAVIS_PULL_REQUEST" == "false" -a "$TRAVIS_BRANCH" == "master" ]; then git status; fi
- if [ "$TRAVIS_REPO_SLUG" == "fkanehiro/simtrans" -a "$TRAVIS_PULL_REQUEST" == "false" -a "$TRAVIS_BRANCH" == "master" ]; then git add -f .; fi
- if [ "$TRAVIS_REPO_SLUG" == "fkanehiro/simtrans" -a "$TRAVIS_PULL_REQUEST" == "false" -a "$TRAVIS_BRANCH" == "master" ]; then git commit -m "Build documents from $TRAVIS_COMMIT" . ; fi
- if [ "$TRAVIS_REPO_SLUG" == "fkanehiro/simtrans" -a "$TRAVIS_PULL_REQUEST" == "false" -a "$TRAVIS_BRANCH" == "master" ]; then git remote -v; fi
- if [ "$TRAVIS_REPO_SLUG" == "fkanehiro/simtrans" -a "$TRAVIS_PULL_REQUEST" == "false" -a "$TRAVIS_BRANCH" == "master" ]; then git push --quiet https://[email protected]/$TRAVIS_REPO_SLUG.git gh-pages; fi