14 Star 52 Fork 11

凹凸实验室 / Taro-UI

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.travis.yml 1.72 KB
一键复制 编辑 原始数据 按行查看 历史
version: ">= 1.0.0"
language: node_js
node_js:
- "10"
os: linux
dist: xenial
arch: amd64
cache:
yarn: true
directories:
- node_modules
jobs:
include:
- stage: test
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH="$HOME/.yarn/bin:$PATH"
install:
- yarn --frozen-lockfile
before_script:
- yarn run clean:component
- yarn run build:component
script:
- yarn run test:ci
- stage: release
if: "(tag =~ /^v3/) AND (NOT (type IN (pull_request)))"
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH="$HOME/.yarn/bin:$PATH"
install:
- yarn --frozen-lockfile
before_script:
- yarn run clean:component
script:
- yarn run build:component
before_deploy:
- echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" >> $HOME/.npmrc 2> /dev/null
deploy:
provider: script
skip_cleanup: true
script: "yarn run publish"
on:
tags: true
repo: NervJS/taro-ui
- stage: deploy
if: "(branch = master) AND (NOT (type IN (pull_request)))"
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH="$HOME/.yarn/bin:$PATH"
install:
- yarn --frozen-lockfile
before_script:
- yarn run clean
script:
- yarn run build
after_script:
- cd packages/taro-ui-docs/dist
- git init
- git add -A
- git commit -m "Update Document"
- git push --force --quiet "https://${GITHUB_TOKEN}@${GH_REF}" master:gh-pages
env:
global:
- GH_REF=github.com/NervJS/taro-ui.git
1
https://gitee.com/o2team/Taro-UI.git
git@gitee.com:o2team/Taro-UI.git
o2team
Taro-UI
Taro-UI
next

搜索帮助