Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 39 additions & 2 deletions docs/12-ContinuousIntegration.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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)**
* **Previous Chapter: [< Codecoverage](/docs/11-Codecoverage)**