Browse Source

chore: add nightly build and ignore gh-pages

pull/11514/head
Wei Zhu 6 years ago
parent
commit
a5ee1c4899
  1. 99
      .circleci/config.yml
  2. 2
      package.json

99
.circleci/config.yml

@ -21,6 +21,52 @@ references:
environment: environment:
REACT: 16 REACT: 16
workflow: &workflow
jobs:
- setup:
filters:
branches:
ignore: gh-pages
- dist:
requires:
- setup
- compile:
requires:
- setup
- lint:
requires:
- setup
- test_dist:
requires:
- dist
- test_lib:
requires:
- compile
- test_es:
requires:
- compile
- test_dom:
requires:
- setup
- test_node:
requires:
- setup
- test_dist_15:
requires:
- dist
- test_lib_15:
requires:
- compile
- test_es_15:
requires:
- compile
- test_dom_15:
requires:
- setup
- test_node_15:
requires:
- setup
jobs: jobs:
setup: setup:
<<: *container_config <<: *container_config
@ -177,45 +223,14 @@ jobs:
workflows: workflows:
version: 2 version: 2
build-test: build_test:
jobs: <<: *workflow
- setup nightly:
- dist: <<: *workflow
requires: triggers:
- setup - schedule:
- compile: cron: "0 0 * * *"
requires: filters:
- setup branches:
- lint: only:
requires: - master
- setup
- test_dist:
requires:
- dist
- test_lib:
requires:
- compile
- test_es:
requires:
- compile
- test_dom:
requires:
- setup
- test_node:
requires:
- setup
- test_dist_15:
requires:
- dist
- test_lib_15:
requires:
- compile
- test_es_15:
requires:
- compile
- test_dom_15:
requires:
- setup
- test_node_15:
requires:
- setup

2
package.json

@ -196,7 +196,7 @@
"start": "rimraf _site && mkdir _site && node ./scripts/generateColorLess.js && cross-env NODE_ENV=development bisheng start -c ./site/bisheng.config.js", "start": "rimraf _site && mkdir _site && node ./scripts/generateColorLess.js && cross-env NODE_ENV=development bisheng start -c ./site/bisheng.config.js",
"start:preact": "node ./scripts/generateColorLess.js && cross-env NODE_ENV=development REACT_ENV=preact bisheng start -c ./site/bisheng.config.js", "start:preact": "node ./scripts/generateColorLess.js && cross-env NODE_ENV=development REACT_ENV=preact bisheng start -c ./site/bisheng.config.js",
"site": "cross-env NODE_ENV=production bisheng build --ssr -c ./site/bisheng.config.js && node ./scripts/generateColorLess.js", "site": "cross-env NODE_ENV=production bisheng build --ssr -c ./site/bisheng.config.js && node ./scripts/generateColorLess.js",
"predeploy": "antd-tools run clean && npm run site && cp netlify.toml _site", "predeploy": "antd-tools run clean && npm run site && cp netlify.toml _site && cp -p .circleci _site",
"deploy": "bisheng gh-pages --push-only", "deploy": "bisheng gh-pages --push-only",
"pub": "antd-tools run pub", "pub": "antd-tools run pub",
"prepublish": "antd-tools run guard", "prepublish": "antd-tools run guard",

Loading…
Cancel
Save