diff --git a/docs/12-ContinuousIntegration.md b/docs/12-ContinuousIntegration.md index 1f3e8ee70..4fc546c28 100644 --- a/docs/12-ContinuousIntegration.md +++ b/docs/12-ContinuousIntegration.md @@ -164,7 +164,44 @@ test: ![report](http://codeception.com/images/gitlab/build.png) -For acceptance testing you can use `codeception/codeception` docker image as base. +For acceptance testing you can use `codeception/codeception` docker image as base. See example below: + +{% highlight yaml %} + + +image: + name: codeception/codeception + # clear image entrypoint to make bash being available + entrypoint: [""] + +# run selenium chrome as a local service (put "host: 'selenium__standalone-chrome'" in environment configuration) +services: + - selenium/standalone-chrome:latest + +# Select what we should cache +cache: + paths: + - vendor/ + +before_script: +# Install all project dependencies +- composer install + +# Test +test: + script: + - vendor/bin/codecept run acceptance --xml --html + artifacts: + when: always + expire_in: 1 week + paths: + - tests/_output + # make the report available in Gitlab UI. see https://docs.gitlab.com/ee/ci/unit_test_reports.html + reports: + junit: tests/_output/report.xml + +{% endhighlight %} + ## Conclusion @@ -174,4 +211,4 @@ It is highly recommended to use Continuous Integration system in development. Co * **Next Chapter: [ParallelExecution >](/docs/12-ParallelExecution)** -* **Previous Chapter: [< Codecoverage](/docs/11-Codecoverage)** \ No newline at end of file +* **Previous Chapter: [< Codecoverage](/docs/11-Codecoverage)**