Skip to content

Commit

Permalink
New travis.yml file.
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardCardGate committed Jan 16, 2020
1 parent b00ffca commit e4f7189
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
language: php

php:
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3
- 7.4

# This triggers builds to run on the new TravisCI infrastructure.
# See: http://docs.travis-ci.com/user/workers/container-based-infrastructure/
sudo: false

## Cache composer
cache:
directories:
- $HOME/.composer/cache

install:
- travis_retry composer install --no-interaction
- composer require --dev "phpunit/phpunit"

script:
- composer validate --strict
- vendor/bin/phpunit -c tests/phpunit.xml
1 change: 1 addition & 0 deletions README.mdown
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

[![Total Downloads](https://img.shields.io/packagist/dt/cardgate/omnipay-cardgate.svg)](https://packagist.org/packages/cardgate/cardgate-omnipay)
[![Latest Version](https://img.shields.io/packagist/v/cardgate/omnipay-cardgate.svg)](https://github.com/cardgate/cardgate-omnipay/releases)
[![Build Status](https://travis-ci.org/cardgate/omnipay-cardgate.svg?branch=master)](https://travis-ci.org/cardgate/cardgate-omnipay)

## Installation

Expand Down
23 changes: 23 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@

<?xml version="1.0" encoding="UTF-8" ?>
<phpunit
backupGlobals="false"
backupStaticAttributes="false"
bootstrap="tests/bootstrap.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false">
<php>
<ini name="display_errors" value="stderr" />
<ini name="error_log" value="/dev/null" />
</php>
<testsuites>
<testsuite name="Unit tests">
<directory>./tests</directory>
</testsuite>
</testsuites>
</phpunit>

0 comments on commit e4f7189

Please sign in to comment.