From 428f25cba07807ae085216ba7cf996e98fb9ea6f Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Tue, 24 Jul 2018 20:50:36 +0800 Subject: [PATCH 1/2] ci: trigger regression test on push to regression-test branch --- .circleci/config.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 8abef177ef6..dd5bd028302 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -62,6 +62,16 @@ jobs: - run: npm run test:ssr - run: npm run test:weex + trigger-regression-test: + <<: *defaults + steps: + - run: + command: | + curl --user ${CIRCLE_TOKEN}: \ + --data build_parameters[CIRCLE_JOB]=update \ + --data build_parameters[VUE_REVISION]=${CIRCLE_SHA1} \ + https://circleci.com/api/v1.1/project/github/vuejs/regression-testing/tree/master + workflows: version: 2 install-and-parallel-test: @@ -79,3 +89,13 @@ workflows: - test-ssr-weex: requires: - install + - trigger-regression-test: + filters: + branches: + only: + - regression-test + requires: + - test-cover + - lint-flow-types + - test-e2e + - test-ssr-weex From 048c476f5256283715b8ab0930501bd68580dbfd Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Mon, 6 Aug 2018 22:37:10 +0800 Subject: [PATCH 2/2] ci: run regression-test job against dev branch every week --- .circleci/config.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index dd5bd028302..261f8aded19 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -99,3 +99,32 @@ workflows: - lint-flow-types - test-e2e - test-ssr-weex + weekly_regression_test: + triggers: + - schedule: + # At 13:00 UTC (9:00 EDT) on every Monday + cron: "0 13 * * 1" + filters: + branches: + only: + dev + jobs: + - install + - test-cover: + requires: + - install + - lint-flow-types: + requires: + - install + - test-e2e: + requires: + - install + - test-ssr-weex: + requires: + - install + - trigger-regression-test: + requires: + - test-cover + - lint-flow-types + - test-e2e + - test-ssr-weex