代码拉取完成,页面将自动刷新
language: node_js
dist: bionic
node_js:
- "14.15.4"
addons:
chrome: stable
services:
- xvfb
branches:
only:
- master
- develop
- /.*old-env.*/
- /.*next-release.*/
- /.*beta.*/
- /.*greenkeeper.*/
before_script:
- PATH=${PATH//:\.\/node_modules\/\.bin/}
env:
matrix:
- MODULE=jsapi
install:
- npm install
jobs:
include:
- stage: Lint
name: Lint
script: ./scripts/lint.sh
- stage: Build
name: Build
script: ./scripts/build.sh || exit 1
- stage: Test
name: Test
script:
- npm run test || exit 1 /
- npm run coverage
- stage: Perfomance
name: Perfomance
script: ./scripts/test-performance.sh || exit 1
- stage: Integration
name: Integration
script: ./scripts/test-integration.sh || exit 1
- stage: Release
name: Release
if: (type = push OR type = cron OR type = api) AND tag IS blank
script:
- ./scripts/build.sh || exit 1
- ./scripts/publish.sh
- stage: Release Tag
if: branch = master AND type = push OR (tag =~ .*beta.*)
script: ./scripts/git-tag.sh
- stage: Trigger ADF alpha
name: Trigger ADF alpha
if: (branch = develop) AND (type = cron OR type = api)
script: ./scripts/update-project.sh -p $TRAVIS_BUILD_NUMBER -t $GITHUB_TOKEN -v alpha
- stage: Trigger ADF beta
name: Trigger ADF beta
if: tag =~ .*beta.* AND type = push
script: ./scripts/update-project.sh -p $TRAVIS_BUILD_NUMBER -t $GITHUB_TOKEN -v beta
cache:
directories:
- dist
- node_modules
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。