2018-11-24 12:31:41 +08:00
|
|
|
language: minimal
|
2018-11-23 22:12:56 +08:00
|
|
|
install:
|
|
|
|
- sudo apt-get install jq
|
|
|
|
- git clone --depth=1 -b gh-pages https://github.com/LCTT/TranslateProject/ build && rm -rf build/.git
|
2018-10-23 18:14:35 +08:00
|
|
|
script:
|
2018-10-27 21:46:11 +08:00
|
|
|
- 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then sh ./scripts/check.sh; fi'
|
|
|
|
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then sh ./scripts/badge.sh; fi'
|
2018-11-23 22:12:56 +08:00
|
|
|
- 'if [ "$TRAVIS_EVENT_TYPE" = "cron" ]; then sh ./scripts/status.sh; fi'
|
|
|
|
|
2018-10-25 08:51:01 +08:00
|
|
|
branches:
|
|
|
|
only:
|
2018-11-07 13:02:35 +08:00
|
|
|
- master
|
2018-11-23 22:12:56 +08:00
|
|
|
# - status
|
2018-10-25 08:51:01 +08:00
|
|
|
except:
|
2018-11-07 13:02:35 +08:00
|
|
|
- gh-pages
|
2018-10-25 08:51:01 +08:00
|
|
|
git:
|
|
|
|
submodules: false
|
2018-11-23 22:12:56 +08:00
|
|
|
depth: false
|
2018-10-24 22:42:38 +08:00
|
|
|
deploy:
|
|
|
|
provider: pages
|
|
|
|
skip_cleanup: true
|
|
|
|
github_token: $GITHUB_TOKEN
|
|
|
|
local_dir: build
|
|
|
|
on:
|
2018-11-23 22:12:56 +08:00
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
# - status
|