Skip to content

Commit b6d0023

Browse files
committed
add manual branch specific graphics test job to circleci
1 parent e257970 commit b6d0023

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.circleci/config.yml

+32
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ commands:
6565
default: false
6666
grep:
6767
type: string
68+
branchSpecificTest:
69+
type: boolean
70+
default: false
6871
steps:
6972
- checkout-with-deps
7073
- run:
@@ -77,6 +80,7 @@ commands:
7780
echo 'export PRODUCTION_BUILD=<< parameters.productionBuild >>' >> $BASH_ENV
7881
echo 'export GREP="<< parameters.grep >>"' >> $BASH_ENV
7982
echo 'export COMPARE_BRANCH="v5-candidate"' >> $BASH_ENV
83+
echo 'export BRANCH_SPECIFIC_TEST=<< parameters.branchSpecificTest >>' >> $BASH_ENV
8084
- run:
8185
command: scripts/run-graphics-tests.sh
8286
no_output_timeout: 20m
@@ -206,12 +210,16 @@ jobs:
206210
productionBuild:
207211
type: boolean
208212
default: false
213+
branchSpecificTest:
214+
type: boolean
215+
default: false
209216
executor: node-browsers-executor
210217
steps:
211218
- run-graphics-tests:
212219
devicePixelRatio: << parameters.dpr >>
213220
grep: << parameters.grep >>
214221
productionBuild: << parameters.productionBuild >>
222+
branchSpecificTest: << parameters.branchSpecificTest >>
215223

216224
memleaks-tests:
217225
executor: node-browsers-executor
@@ -318,6 +326,30 @@ anchors:
318326
workflows:
319327
version: 2
320328

329+
branch-specific-graphics-tests:
330+
when:
331+
and:
332+
- equal: [ manual-trigger, << pipeline.trigger_source >> ]
333+
jobs:
334+
- graphics-tests:
335+
name: graphics-tests-part1-dpr<< matrix.dpr >><<# matrix.productionBuild >>-PROD<</ matrix.productionBuild >>
336+
grep: "(api/|applying-options/|series-markers/|price-scale/)"
337+
branchSpecificTest: true
338+
matrix: *graphics-test-matrix
339+
<<: *graphics-test-config
340+
- graphics-tests:
341+
name: graphics-tests-part2-dpr<< matrix.dpr >><<# matrix.productionBuild >>-PROD<</ matrix.productionBuild >>
342+
grep: "(initial-options/|logical-range/|panes/|plugins/|two-scales/|test-cases/)"
343+
branchSpecificTest: true
344+
matrix: *graphics-test-matrix
345+
<<: *graphics-test-config
346+
- graphics-tests:
347+
name: graphics-tests-part3-dpr<< matrix.dpr >><<# matrix.productionBuild >>-PROD<</ matrix.productionBuild >>
348+
grep: "(series/|time-scale/|degenerative-horizontal-series-with-integer-min-tick/)"
349+
branchSpecificTest: true
350+
matrix: *graphics-test-matrix
351+
<<: *graphics-test-config
352+
321353
build-lint-test:
322354
jobs:
323355
- install-deps:

0 commit comments

Comments
 (0)