|
2 | 2 | [](https://packagist.org/packages/thecodingmachine/washingmachine) |
3 | 3 | [](https://packagist.org/packages/thecodingmachine/washingmachine) |
4 | 4 | [](https://packagist.org/packages/thecodingmachine/washingmachine) |
5 | | -[](https://scrutinizer-ci.com/g/thecodingmachine/washingmachine/?branch=1.2) |
6 | | -[](https://travis-ci.org/thecodingmachine/washingmachine) |
7 | | -[](https://coveralls.io/github/thecodingmachine/washingmachine?branch=1.2) |
| 5 | +[](https://scrutinizer-ci.com/g/thecodingmachine/washingmachine/?branch=1.3) |
| 6 | +[](https://travis-ci.org/thecodingmachine/washingmachine) |
| 7 | +[](https://coveralls.io/github/thecodingmachine/washingmachine?branch=1.3) |
8 | 8 |
|
9 | 9 |
|
10 | 10 | # Washing machine |
@@ -57,18 +57,35 @@ Now, we need to install the *washingmachine*, and get it to run. |
57 | 57 |
|
58 | 58 | `.gitlab-ci.yml` |
59 | 59 | ``` |
60 | | -before_script: |
61 | | - - composer global require 'thecodingmachine/washingmachine' |
| 60 | +image: php:7.0 |
| 61 | +
|
| 62 | +test: |
| 63 | + before_script: |
| 64 | + - cd /root && composer create-project thecodingmachine/washingmachine washingmachine ^1.2 |
62 | 65 | |
63 | | -script: |
64 | | - - phpdbg -qrr vendor/bin/phpunit |
| 66 | + script: |
| 67 | + - phpdbg -qrr vendor/bin/phpunit |
65 | 68 | |
66 | | -after_script: |
67 | | - - /root/.composer/vendor/bin/washingmachine run -v |
| 69 | + after_script: |
| 70 | + - /root/washingmachine/washingmachine run -v |
68 | 71 | ``` |
69 | 72 |
|
70 | 73 | Notice that we need to make sure the PHPDbg extension for PHP is installed. Also, make sure that Xdebug is NOT enabled on your Docker instance. Xdebug can also return code coverage data but is less accurate than PHPDbg, leading to wrong CRAP score results. |
71 | 74 |
|
| 75 | +### Supported Gitlab versions |
| 76 | + |
| 77 | +Gitlab 8+ is supported. |
| 78 | + |
| 79 | +- The washingmachine v1.0 => v1.2 has support for Gitlab 8. |
| 80 | +- The washingmachine v1.2+ has support for Gitlab 8 and 9. |
| 81 | + |
| 82 | +Starting with v1.3, we use some features only available in Gitlab 9. |
| 83 | +You can still run the washingmachine on Gitlab 8.10+, but you will need to fill the `job_stage` parameters when program is run: |
| 84 | + |
| 85 | + /root/washingmachine/washingmachine run --job-stage=test |
| 86 | + |
| 87 | +THe 'job_stage' parameter is the name of the stage in your `gitlab-ci.yml` file. |
| 88 | + |
72 | 89 | ### Adding extra data in the comment |
73 | 90 |
|
74 | 91 | When the *washingmachine* adds a comment in your merge-request, you can ask it to add additional text. |
|
0 commit comments