tests: move testing command into config
This commit is contained in:
@@ -83,7 +83,10 @@ jobs:
|
|||||||
- init-tests
|
- init-tests
|
||||||
- run:
|
- run:
|
||||||
shell: /bin/bash
|
shell: /bin/bash
|
||||||
command: sudo -E make -e test-ci-<< parameters.index >>
|
command: |
|
||||||
|
@mkdir -p test-results/bats
|
||||||
|
@cd tests/unit && echo "executing tests: $(shell cd tests/unit ; ls << parameters.index >>*.bats | xargs)"
|
||||||
|
cd tests/unit && bats --formatter bats-format-junit -e -T -o ../../test-results/bats $(shell cd tests/unit ; ls << parameters.index >>*.bats | xargs)
|
||||||
no_output_timeout: 60m
|
no_output_timeout: 60m
|
||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
path: ./test-results
|
path: ./test-results
|
||||||
@@ -98,15 +101,17 @@ workflows:
|
|||||||
- docker-deploy-tests:
|
- docker-deploy-tests:
|
||||||
requires:
|
requires:
|
||||||
- build
|
- build
|
||||||
|
- unit-tests
|
||||||
- go-tests:
|
- go-tests:
|
||||||
matrix:
|
matrix:
|
||||||
parameters:
|
parameters:
|
||||||
index: [0, 1, 2, 3]
|
index: [0, 1, 2, 3]
|
||||||
requires:
|
requires:
|
||||||
- build
|
- build
|
||||||
|
- unit-tests
|
||||||
- unit-tests:
|
- unit-tests:
|
||||||
matrix:
|
matrix:
|
||||||
parameters:
|
parameters:
|
||||||
index: [0, 1, 2, 3, 4]
|
index: [10, 20, 30, 40, 50, 60]
|
||||||
requires:
|
requires:
|
||||||
- build
|
- build
|
||||||
|
|||||||
26
tests.mk
26
tests.mk
@@ -267,30 +267,4 @@ test-ci:
|
|||||||
@cd tests/unit && echo "executing tests: $(shell cd tests/unit ; circleci tests glob *.bats | circleci tests split --split-by=timings --timings-type=classname | xargs)"
|
@cd tests/unit && echo "executing tests: $(shell cd tests/unit ; circleci tests glob *.bats | circleci tests split --split-by=timings --timings-type=classname | xargs)"
|
||||||
cd tests/unit && bats --formatter bats-format-junit -e -T -o ../../test-results/bats $(shell cd tests/unit ; circleci tests glob *.bats | circleci tests split --split-by=timings --timings-type=classname | xargs)
|
cd tests/unit && bats --formatter bats-format-junit -e -T -o ../../test-results/bats $(shell cd tests/unit ; circleci tests glob *.bats | circleci tests split --split-by=timings --timings-type=classname | xargs)
|
||||||
|
|
||||||
test-ci-0:
|
|
||||||
@mkdir -p test-results/bats
|
|
||||||
@cd tests/unit && echo "executing tests: $(shell cd tests/unit ; ls 10*.bats | xargs)"
|
|
||||||
cd tests/unit && bats --formatter bats-format-junit -e -T -o ../../test-results/bats $(shell cd tests/unit ; ls 10*.bats | xargs)
|
|
||||||
|
|
||||||
test-ci-1:
|
|
||||||
@mkdir -p test-results/bats
|
|
||||||
@cd tests/unit && echo "executing tests: $(shell cd tests/unit ; ls 20*.bats | xargs)"
|
|
||||||
cd tests/unit && bats --formatter bats-format-junit -e -T -o ../../test-results/bats $(shell cd tests/unit ; ls 20*.bats | xargs)
|
|
||||||
|
|
||||||
test-ci-2:
|
|
||||||
@mkdir -p test-results/bats
|
|
||||||
@cd tests/unit && echo "executing tests: $(shell cd tests/unit ; ls 20*.bats | xargs)"
|
|
||||||
cd tests/unit && bats --formatter bats-format-junit -e -T -o ../../test-results/bats $(shell cd tests/unit ; ls 30*.bats | xargs)
|
|
||||||
|
|
||||||
test-ci-3:
|
|
||||||
@mkdir -p test-results/bats
|
|
||||||
@cd tests/unit && echo "executing tests: $(shell cd tests/unit ; ls 40*.bats | xargs)"
|
|
||||||
cd tests/unit && bats --formatter bats-format-junit -e -T -o ../../test-results/bats $(shell cd tests/unit ; ls 40*.bats | xargs)
|
|
||||||
|
|
||||||
test-ci-4:
|
|
||||||
@mkdir -p test-results/bats
|
|
||||||
@cd tests/unit && echo "executing tests: $(shell cd tests/unit ; ls 50*.bats | xargs)"
|
|
||||||
cd tests/unit && bats --formatter bats-format-junit -e -T -o ../../test-results/bats $(shell cd tests/unit ; ls 50*.bats | xargs)
|
|
||||||
|
|
||||||
|
|
||||||
test-ci-docker: setup-docker-deploy-tests deploy-test-checks-root deploy-test-config deploy-test-multi deploy-test-go-fail-predeploy deploy-test-go-fail-postdeploy
|
test-ci-docker: setup-docker-deploy-tests deploy-test-checks-root deploy-test-config deploy-test-multi deploy-test-go-fail-predeploy deploy-test-go-fail-postdeploy
|
||||||
|
|||||||
Reference in New Issue
Block a user