11 Star 80 Fork 27

Wechaty / wechaty

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.travis.yml 1.51 KB
一键复制 编辑 原始数据 按行查看 历史
Huan 提交于 2020-02-07 23:22 . fix ci
language: node_js
node_js:
- "10"
- "12"
- "13"
os:
- linux
- osx
- windows
addons:
apt:
packages:
- jq
- shellcheck
- moreutils
cache:
directories:
- node_modules
stages:
- test
- pack
- name: deploy
if: (type = push) AND branch =~ ^(master|v\d+\.\d+)$
install:
- npm install
script:
- node --version
- npm --version
- echo "Testing Started ..."
- if [ "$TRAVIS_OS_NAME" != 'linux' ]; then npm run test:unit; else npm run test; fi
- echo "Testing Finished"
jobs:
include:
- stage: pack
script:
- echo "NPM Pack Testing Started ..."
- npm version
- ./scripts/generate-version.sh
- npm run test:pack
- echo "NPM Pack Testing Finished."
- stage: deploy
script:
- echo "NPM Deploying Started ..."
- npm version
- ./scripts/generate-version.sh
- ./scripts/package-publish-config-tag.sh
- npm run dist
- echo "NPM Building Finished."
deploy:
provider: npm
email: zixia@zixia.net
api_key: "$NPM_TOKEN"
skip_cleanup: true
on:
all_branches: true
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/41a19fbf1d54a04e5217
on_success: always # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: never # options: [always|never|change] default: always
email:
on_success: change
on_failure: change
TypeScript
1
https://gitee.com/wechaty/wechaty.git
git@gitee.com:wechaty/wechaty.git
wechaty
wechaty
wechaty
master

搜索帮助