forked from Meituan-Dianping/lyrebird
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
74 lines (71 loc) · 3.05 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
jobs:
include:
- stage: unit test
language: python
catch: pip
python:
- "3.6"
# command to install dependencies
install:
- pip install -r requirements.txt
# command to run tests
script:
- pytest
- stage: sonarcloud
language: python
python:
- "3.6"
dist: trusty
addons:
sonarcloud:
organization: "meituan-dianping"
token:
secure: "Bm1OlcA3pmlvzN8r85DgcsG1lGn6Xh3OXbw9vZq0gcO461dXDcuj5RcOAOCVSUVQ0ERZW5nssPRf4ZzQMKXxk4iG4r9ZBxOed3yUGuXVLjqzCmxZlH4P00RYrH9WDG4qYWmp5pC1VVm5QUzmllPJnMtoG2G/b62EjDtNE4tJEdMaHEqh1ZDOB/FNmvu/7TbWRqu7l7UZxxpg+k1ELdznxlg1L7dZP99Obaxa4kb9l5MDi1LqifDjXcOMzbrwvBjTEeqKGPsssPlWxisOri6hUPvLF67t/HvtDwOLaYpr0AFsawiua9kJB502X8SUVc4s2ZrDw1HVx1EnIGMfRkCG21OxA02y7FTn0S4UAT6iniVLSdDhcbjIz3+Ngvjoo63bsaa/wWpodlkRO+T3Q63VaNGIYV5h7HPxTAXMR62HAuhpD1oq3YXJEOy55S3nMuHGoN/9VV8NARk5kJC+3QsatFaU9uW7UHDIxzAtl3size78Ip4yR/iYKeAurrKc0SjP9vHujrgBQGz1Tb/vrdclRfxB/3gciJRTaolot71oRGrOgt9REjnlaYdZnRc9/9QQYeHxtb3ivWguGM79ebcfSizEzDIbzoEQ9bPEP66vYt5jmEjRwQ5SYANdGmJnk8GzaouemDnHEfgKoKTRiqmB4IAz/vK0tWRbyj2GsxfyLYs="
script:
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then sonar-scanner; fi' # sonar only on non-PRs
- stage: release to pypi
if: type = push AND tag IS present
language: python
catch:
- pip
- npm
python:
- "3.6"
node_js:
- "10"
install:
- cd frontend
- npm install
- npm run build
- cd ..
script:
- echo "No script for pypi release"
deploy:
provider: pypi
skip_existing: true
skip-cleanup: true
user: meituanqa
password:
secure: "RNTnPDcdO7BRcN6kllUoaGEH+C1WGvuG2TP0iD+AV6F0U380XERIBqQI70gqPIV7HMlHN0FcDSoXYImZameVHvrSAcVN4LcGZwLmHHVBAZMf05ohP2pWJ+AS4C8OkAh1bHfpm6hZVTg8jw+mKYbQkMPoWwMYdGgTrmnSFwy+gdjJIxXZAkX6Kzd2AS4HSeW5u5Ie/UPoY+ksGI3q7ldGcAN09GYy5QB5Zx0LRPI+0kxUEmzyBzx6XQThWOVqakMkoZBSO8ioHkQp2ZKKFu+8CHEufTRQ+QyxeIJUK0rWc5kXF2S0/I0uACaF0QGgz/mtOC1PnxSehbNPtatn88c0IS86EUE6UU8MnOjD1lVmKzUtgnwAiSQ2ppG/fG5L/7dxC5X5/yhCzvHVGUuhG0MdliU/Hh7i8sUjwAyaNka4P4cO12qRPRIl90F9OaJFBrchS7POALPe66yze2LuaTsnPLf6UbPTM2jUJ04dV3pgy1x7QJjsHwxMLuheYbx4T+Jmqf3Hufh9y7eAaBM0jXft71jwZJNOSlRsvhkLkGz3JeP7CYn900KkX/3BXqQjF4BVAiMlpzkHrR/6/1l1cTnpdvvMs8YyTf1kgux0u3r67qJlinfufpUKFiu8NgriDHr/OnXnLV9SgSFKizMgJNVFIZ1IOGVJzJrNVVkh/0GAl8I="
on:
tags: true
- stage: deploy docs
if: branch = master AND type = push
language: node_js
node_js:
- "10"
cache:
yarn: true
directories: node_modules
install:
- yarn global add vuepress
script:
- vuepress build docs
deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUB_ACCESS_TOKEN # Set in travis-ci.org dashboard, marked secure https://docs.travis-ci.com/user/deployment/pages/#Setting-the-GitHub-token
target-branch: gh-pages
local-dir: docs/.vuepress/dist
on:
branch: master