Integrating with Third Parties

GitLab CI

GitLab CI is part of GitLab. You can use it for free on GitLab.com.

## .gitlab-ci.yml
image: goodplay/goodplay

services:
  - docker:dind

test:
  script:
    - goodplay -v -s

Travis CI

Travis CI is a continuous integration service that is available to open source projects at no cost.

## .travis.yml
sudo: required
dist: trusty

language: python
python: 2.7

services:
  - docker

before_install:
  # ensure apt-get cache is up-to-date
  - sudo apt-get -qq update

  # upgrade docker-engine to latest version
  - export DEBIAN_FRONTEND=noninteractive
  - sudo apt-get -qq -o Dpkg::Options::="--force-confnew" -y install docker-engine
  - docker version

install:
  - pip install goodplay

script:
  - goodplay -v

Jenkins CI

To run on Jenkins CI you have to configure the following in your build job:

  1. Under section Build choose Add build step > Execute shell with

    pip install goodplay
    goodplay -v --junit-xml=junit.xml
    
  2. Under section Post-build Actions choose Add post-build action > Publish JUnit test result report and set Test report XMLs to **/junit.xml.

pytest

goodplay is built as a pytest plugin which is enabled by default. Thus when running your other tests via py.test command-line interface, pytest also runs the goodplay tests right beside them.

Note

When running goodplay command-line interface only goodplay tests are considered.