Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pedrotroller/circleci-parallel-builder
Easy way to build parallel sets of tests for Circle CI
https://github.com/pedrotroller/circleci-parallel-builder
Last synced: about 2 months ago
JSON representation
Easy way to build parallel sets of tests for Circle CI
- Host: GitHub
- URL: https://github.com/pedrotroller/circleci-parallel-builder
- Owner: PedroTroller
- Created: 2015-12-28T13:32:15.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-07T18:24:48.000Z (about 9 years ago)
- Last Synced: 2024-11-18T09:53:44.923Z (about 2 months ago)
- Language: PHP
- Size: 17.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## CircleCI-Parallel-Builder
*Easy way to build parallel sets of tests for Circle CI*### Pitch
This tool will create test suites for you. It's made for circle-ci but you can use it with other tools.### Installation
```bash
composer require pedrotroller/circle-parallel-tests-builder --dev
```
A binary file (`circle-tests`) have been added to your binary directory.### Configuration
You just have to create a file named `circle-tests.yml` into your project root directory and follow this pattern :
```yml
"":
"":
"":
```
Where `my_test` is the command to execute, and `weigth` is a number representing the weigth of the execution of your command (can be the duration for exemple).### Usage
You can display suites by using the following command :
```bash
./bin/circle-tests display -t 3 # Will split your tests into 3 suites
```
You can launch a suite by using the following command :
```bash
./bin/circle-tests -i 0 -t 3 # -i represent the index (0 based) of the desired suite
```### Circle-CI use case
```yml
# ./circle-tests.yml
'bin/behat --no-snippets --tags=~disabled --verbose features/api': 21
'bin/behat --no-snippets --tags=~disabled --verbose features/manager': 50
'bin/phpspec run -fpretty --verbose': 1
'bin/install dev demo': 4
'bin/install prod && app/console doctrine:schema:validate -e=prod': 2
```
```yml
# ./circle.yml
general: # ...machine: # ...
dependencies: # ...
test:
override:
- bin/circle-tests run --index=$CIRCLE_NODE_INDEX --total=$CIRCLE_NODE_TOTAL:
parallel: true
```