-
Notifications
You must be signed in to change notification settings - Fork 248
/
Copy path.travis.yml
61 lines (59 loc) · 2.08 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
jobs:
include:
- stage: unit test
language: python
catch: pip
python:
- "3.6"
# command to install dependencies
install:
- pip install -r requirements.txt
- pip install .
# command to run tests
script: pytest
- 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