This repository has been archived by the owner on Feb 18, 2019. It is now read-only.
forked from Meituan-Dianping/lyrebird
-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy path.travis.yml
60 lines (58 loc) · 2.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
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-cleanup: true
user: meituanqa
password:
secure: "BDziC3zSwJtftkB0nn04laZymaPP9T13F81ffplkhMltUJc/zUcghjABM3HOPGk7jjpibsoYyXa6B3rg+KJhXGM3A50WX2iiYExSdgRMmV3beKlO8RYTXzqw2hkeS/atF4++564HTzRC+0NAsj8N7/T6KZNHCfFcajlk0bsHSRYtgzjPsB7YjIuSivVwwqxfve7iUClePGHH0Z5pxvO2LRRLOJZz3TScgQGBSryJjQmL4wnDjYzPUb37REi7PaDWzAUKzRwqISHXs/KQqb4AySU/p/gg7WgOan1dfDhYMEMXsBJgvUKi9itVcVZKuPSqf/pqVVIqn0mxBED7/K0EE5APDFFHG/IsVQSB/qL25AT+F4O+k8lwWvBvcE5AlvYWE6KPDM7xj9mDQ6LRNAKW95Jh/xmOSVCYoRsybdxw2QxfAqmEiG8vXwsyU49ChwXOOUpXKhBnZ65Fse/faipUPWn982pGeUZ39JdcE3WaEJhs5ssyqhObkhOAtSRa+qNzXocwF2JmR3K7tqcpVktD/HPFNwY0VKqB1T5ytOtSu4k/vKo1tLVhUfx5R49GQ96dV4g5x41xUdJYLueOvpG2i16inDHDGA7rlbn2GMqg53w002UOnTBSihE4k1nzDFlLIaP1OAi62CxR7okKZH5yLbgssw+gFqxj1VrwL82h0YM="
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