Skip to content
This repository was archived by the owner on Sep 20, 2021. It is now read-only.

feat(travis) add travis configuration file #1

Merged
merged 1 commit into from
Nov 6, 2017
Merged
Show file tree
Hide file tree
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: 41 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
language: php

matrix:
include:
- php: 7.1
env:
- ENABLE_XDEBUG=true
- php: 7.1
env:
- ENABLE_DEVTOOLS=true
- php: nightly
allow_failures:
- php: nightly
fast_finish: true

os:
- linux

notifications:
irc: "chat.freenode.net#hoaproject"

sudo: false

cache:
directories:
- vendor/

before_script:
- export PATH="$PATH:$HOME/.composer/vendor/bin"
- if [[ ! $ENABLE_XDEBUG ]]; then
phpenv config-rm xdebug.ini || echo "ext-xdebug is not available, cannot remove it.";
fi

script:
- composer install
- vendor/bin/hoa test:run
- if [[ $ENABLE_DEVTOOLS ]]; then
composer global require friendsofphp/php-cs-fixer;
vendor/bin/hoa devtools:cs --diff --dry-run .;
fi

4 changes: 2 additions & 2 deletions Test/Unit/Max.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public function case_insert_scalar()
{
$this
->given(
$max = new SUT(SUT::VALUE_TYPE_MIXED),
$max = new SUT(),
$keys = '',
$series = '',
$four = "ThisIsTheFourKey"
Expand Down Expand Up @@ -44,7 +44,7 @@ public function case_insert_callable()
{
$this
->given(
$max = new SUT(SUT::VALUE_TYPE_OBJECT),
$max = new SUT(),
$series = '',
$four = "ThisIsTheFourKey"
)
Expand Down
4 changes: 2 additions & 2 deletions Test/Unit/Min.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public function case_insert_scalar()
{
$this
->given(
$min = new SUT(SUT::VALUE_TYPE_MIXED),
$min = new SUT(),
$keys = '',
$series = '',
$four = "ThisIsTheFourKey"
Expand Down Expand Up @@ -44,7 +44,7 @@ public function case_insert_callable()
{
$this
->given(
$min = new SUT(SUT::VALUE_TYPE_OBJECT),
$min = new SUT(),
$series = '',
$four = "ThisIsTheFourKey"
)
Expand Down