mirror of
https://github.com/dokku/dokku.git
synced 2025-12-16 12:07:45 +01:00
chore: switch back to normal parallelism
This brings us back full-circle, but with a better understanding of the underlying test suite.
This commit is contained in:
@@ -26,26 +26,6 @@ commands:
|
|||||||
- run:
|
- run:
|
||||||
name: dokku report
|
name: dokku report
|
||||||
command: dokku report
|
command: dokku report
|
||||||
run-bats:
|
|
||||||
description: "Run bats tests"
|
|
||||||
parameters:
|
|
||||||
index:
|
|
||||||
type: string
|
|
||||||
steps:
|
|
||||||
- run:
|
|
||||||
shell: /bin/bash
|
|
||||||
command: |
|
|
||||||
mkdir -p test-results/bats
|
|
||||||
cd tests/unit
|
|
||||||
echo "executing tests: $(ls << parameters.index >>*.bats | xargs)"
|
|
||||||
sudo -E bats --formatter bats-format-junit -e -T -o ../../test-results/bats $(ls << parameters.index >>*.bats | xargs)
|
|
||||||
no_output_timeout: 60m
|
|
||||||
- store_artifacts:
|
|
||||||
path: ./test-results
|
|
||||||
destination: test-results
|
|
||||||
- store_test_results:
|
|
||||||
path: test-results
|
|
||||||
|
|
||||||
|
|
||||||
executors:
|
executors:
|
||||||
default:
|
default:
|
||||||
@@ -78,15 +58,13 @@ jobs:
|
|||||||
DOKKU_SSH_PORT=3022 sudo -E make -e test-ci-docker
|
DOKKU_SSH_PORT=3022 sudo -E make -e test-ci-docker
|
||||||
go-tests:
|
go-tests:
|
||||||
executor: default
|
executor: default
|
||||||
parameters:
|
parallelism: 4
|
||||||
index:
|
|
||||||
type: integer
|
|
||||||
steps:
|
steps:
|
||||||
- init-tests
|
- init-tests
|
||||||
- run:
|
- run:
|
||||||
name: run pre-tests
|
name: run pre-tests
|
||||||
command: |
|
command: |
|
||||||
case << parameters.index >> in
|
case $CIRCLE_NODE_INDEX in
|
||||||
0) sudo -E make -e lint-ci go-tests ci-go-coverage ;;
|
0) sudo -E make -e lint-ci go-tests ci-go-coverage ;;
|
||||||
1) sudo -E make -e deploy-test-checks-root deploy-test-config ;;
|
1) sudo -E make -e deploy-test-checks-root deploy-test-config ;;
|
||||||
2) sudo -E make -e deploy-test-multi ;;
|
2) sudo -E make -e deploy-test-multi ;;
|
||||||
@@ -96,13 +74,19 @@ jobs:
|
|||||||
path: ./coverage.out
|
path: ./coverage.out
|
||||||
test:
|
test:
|
||||||
executor: default
|
executor: default
|
||||||
parameters:
|
parallelism: 4
|
||||||
index:
|
|
||||||
type: string
|
|
||||||
steps:
|
steps:
|
||||||
- init-tests
|
- init-tests
|
||||||
- run-bats:
|
- run:
|
||||||
index: << parameters.index >>
|
command: |
|
||||||
|
sudo -E make -e test-ci
|
||||||
|
no_output_timeout: 60m
|
||||||
|
shell: /bin/bash
|
||||||
|
- store_artifacts:
|
||||||
|
path: ./test-results
|
||||||
|
destination: test-results
|
||||||
|
- store_test_results:
|
||||||
|
path: test-results
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
workflow:
|
workflow:
|
||||||
@@ -111,61 +95,12 @@ workflows:
|
|||||||
- docker-deploy-tests:
|
- docker-deploy-tests:
|
||||||
requires:
|
requires:
|
||||||
- build
|
- build
|
||||||
|
- test
|
||||||
- go-tests:
|
- go-tests:
|
||||||
matrix:
|
|
||||||
parameters:
|
|
||||||
index: [0, 1, 2, 3]
|
|
||||||
requires:
|
requires:
|
||||||
- build
|
- build
|
||||||
- test
|
- test
|
||||||
- test:
|
- test:
|
||||||
matrix:
|
|
||||||
parameters:
|
|
||||||
index:
|
|
||||||
- app-json
|
|
||||||
- apps_1
|
|
||||||
- apps_2
|
|
||||||
- build-env
|
|
||||||
- buildpacks
|
|
||||||
- certs
|
|
||||||
- checks
|
|
||||||
- client
|
|
||||||
- config-oddities
|
|
||||||
- config
|
|
||||||
- core_1
|
|
||||||
- core_2
|
|
||||||
- core_3
|
|
||||||
- docker-options
|
|
||||||
- domains
|
|
||||||
- events
|
|
||||||
- git_1
|
|
||||||
- git_2
|
|
||||||
- init
|
|
||||||
- network
|
|
||||||
- nginx-vhosts_1
|
|
||||||
- nginx-vhosts_2
|
|
||||||
- nginx-vhosts_3
|
|
||||||
- nginx-vhosts_4
|
|
||||||
- nginx-vhosts_5
|
|
||||||
- nginx-vhosts_6
|
|
||||||
- nginx-vhosts_7
|
|
||||||
- plugin
|
|
||||||
- proxy
|
|
||||||
- ps-dockerfile-1
|
|
||||||
- ps-dockerfile-2
|
|
||||||
- ps-general
|
|
||||||
- ps-herokuish-1
|
|
||||||
- ps-herokuish-2
|
|
||||||
- repo
|
|
||||||
- report
|
|
||||||
- resource_1
|
|
||||||
- resource_2
|
|
||||||
- scheduler-docker-local
|
|
||||||
- ssh_keys
|
|
||||||
- storage
|
|
||||||
- tags
|
|
||||||
- tar
|
|
||||||
- trace
|
|
||||||
- version
|
|
||||||
requires:
|
requires:
|
||||||
- build
|
- build
|
||||||
|
- go-tests
|
||||||
|
|||||||
Reference in New Issue
Block a user