@khs1994/tencent-ai
Version:
Tencent AI SDK
76 lines (66 loc) • 1.51 kB
YAML
language: node_js
git:
submodule_override:
"test/resource": "https://gitee.com/khs1994-php/resource"
pipeline:
install:
image: khs1994/node:git
commands:
- npm config set cache /tmp/pcit_cache/npm
- npm install --registry=https://registry.npm.taobao.org
script:
image: node:${NODE_VERSION}-alpine
# environment:
# - NODE_TENCENT_AI_APP_KEY=abc
# - NODE_TENCENT_AI_APP_ID=123
commands:
- npm test
build:
image: node:${NODE_VERSION}-alpine
commands:
- npm run prepublishOnly
when:
status: success
after_success:
image: khs1994/node:git
# environment:
# - CODECOV_TOKEN=XXX
commands:
- npm run codecov -- --env=NODE_VERSION --build ${PCIT_BUILD_ID}
- rm -rf src/client/data.txt
when:
status: success
version_daily:
commands:
- npm --no-git-tag-version version prerelease --preid=dev.$(date +"%Y%m%d")
when:
event: ['push']
status: success
matrix:
- NODE_VERSION: 12
deploy:
settings:
provider: npm
email: khs1994@khs1994.com
api_key: ${NPM_TOKEN}
# tag: next
when:
event: tag
status: success
matrix:
- NODE_VERSION: 12
deploy_next:
settings:
provider: npm
email: khs1994@khs1994.com
api_key: ${NPM_TOKEN}
tag: next
when:
event: push
status: success
matrix:
- NODE_VERSION: 12
matrix:
NODE_VERSION:
- 12
- 10