Skip to content

Instantly share code, notes, and snippets.

@brunocarvalhodearaujo
Created August 21, 2017 17:18
Show Gist options
  • Save brunocarvalhodearaujo/2ff7c7e639e442f7fb6391422150c5bf to your computer and use it in GitHub Desktop.
Save brunocarvalhodearaujo/2ff7c7e639e442f7fb6391422150c5bf to your computer and use it in GitHub Desktop.
stages:
- test
phpunit:
stage: test
image: php:7.1-cli
only:
- master
script:
- apt-get update
- apt-get install -y unzip
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer
- composer self-update
- composer install --prefer-dist > /dev/null
- php vendor/bin/phpunit --colors --debug --coverage-text
<?xml version="1.0" encoding="UTF-8"?>
<phpunit colors="true" syntaxCheck="true" verbose="true">
<testsuites>
<testsuite name="Composer Test Suite">
<directory>./src/</directory>
</testsuite>
</testsuites>
</phpunit>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment