TS3-Translation_zh-CN/.travis.yml

50 lines
1.8 KiB
YAML
Raw Normal View History

2019-01-28 22:31:19 +08:00
dist: xenial
language: python
python: 3.7
sudo: required
2019-02-07 16:11:41 +08:00
cache:
- bundler
- pip
2019-01-29 22:34:30 +08:00
branches:
2019-01-30 21:44:05 +08:00
except:
- travis-dev-build
2019-01-29 22:34:30 +08:00
2019-01-28 22:31:19 +08:00
before_install:
2019-02-07 16:11:41 +08:00
- export TZ=Asia/Shanghai
- sudo apt-get update -q
2019-01-28 22:31:19 +08:00
install:
2019-02-07 16:11:41 +08:00
- sudo apt-get install qt5-default qttools5-dev-tools -y -q
2019-01-28 22:31:19 +08:00
script:
2019-02-07 16:11:41 +08:00
- python3 maker.py
- rm dist/*
2019-01-28 22:31:19 +08:00
2019-01-29 12:03:10 +08:00
before_deploy:
2019-01-30 20:01:46 +08:00
- git tag -f travis-dev-build
2019-01-30 21:26:36 +08:00
- git remote add tmp https://${TRAVIS_REPO_SLUG%/*}:${GITHUB_API_KEY}@github.com/${TRAVIS_REPO_SLUG}.git
2019-01-30 22:19:14 +08:00
- git push tmp :travis-dev-build || true
2019-01-30 21:26:36 +08:00
- git push -f tmp travis-dev-build
- git remote remove tmp
2019-01-30 20:01:46 +08:00
#- export TRAVIS_TAG=${TRAVIS_TAG:-$(date +'%Y%m%d%H%M%S')-$(git log --format=%h -1)}
#- git tag $TRAVIS_TAG
2019-01-29 12:03:10 +08:00
2019-01-28 22:31:19 +08:00
deploy:
provider: releases
2019-01-30 22:19:14 +08:00
name: TeamSpeak 3 zh-CN translation snapshot build
2019-01-30 21:44:05 +08:00
body: $TRAVIS_BRANCH ($TRAVIS_COMMIT) Automatic build by Travis CI on $(date +'%F %T %Z').
2019-01-28 22:31:19 +08:00
prerelease: true
api_key:
2019-01-28 22:47:38 +08:00
secure: Uhkopjz/RWKThMknhkOmuWU/8WZgS+0MkNKwV7ydQ0r4xat8m6DbCxmlyHM1Y5sLaC3wKwyW2CTnKue0wscDokNan+KdJLoh90xfJytBcPx33ElYEw7Gc+ChfJQy/KNxlrps4XOH2+wBTemlK2ws1btL70pHrBdgLfQtGiZKC69mz+oegQjkky7wC9JT4ne81rDtNwwV7TT2htP/ewTZejIXct7egydk0PpmXN8j9uondfblkk3t4TbsojWa7JybkE/nD/vxUIzd20gi+it4aYpkepga1cnbzm2/ZMWPeCSquu28X4vnhXW17RmHyT7L5zueL+bAz5AEwK4FfCMZDqETbXhIFz6pgsiVneZMpCr6gqNU112ihKTtVgDQrmk6xw+ST24yfqRP4qUBoF0rYz50YT1VpcucqEAuNK6nkha54P5H9xzZkQEjRLV0Gro0B5euwmPFX0KUbxaq58gUVlq0DJgWblYjILzd9/BgS0KKLmyNL1NSkwRHdn+AJ3s/1h206nzSZ2h/RnEXGzT/f2jsVwxi1QQOVFkQwyVS4IvZl2wgb0XZsK7pAnfjznAsR8NYYzcFb4S4KmYxoBGR6jr2zfw9o0LfraOEDM+A05IjYlMpZYE9i7VhQ+4rbX11cjW6gPAMT86Gqw84rsxPNe3FGyBriN1LRQybljzJe1Y=
2019-01-29 12:03:10 +08:00
file: "Chinese_Translation_zh-CN.ts3_translation"
skip_cleanup: true
2019-01-30 20:01:46 +08:00
overwrite: true
target_commitish: $TRAVIS_COMMIT
2019-01-28 22:31:19 +08:00
on:
2019-02-07 16:11:41 +08:00
repo: jitingcn/TS3-Translation_zh-CN
after_deploy:
- python3 maker.py 1