Skip to content

Commit

Permalink
- Fix travis.
Browse files Browse the repository at this point in the history
- Add changelog.
  • Loading branch information
alexshelkov committed Feb 15, 2018
1 parent 02669dd commit 9d99f55
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 10 deletions.
21 changes: 12 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
language: php

php:
- "7.1"
- "7.0"
- "5.6"
- "5.5"
- "5.4"
- "5.3"
matrix:
include:
- php: 7.2
- php: 7.1
- php: 7.0
- php: 5.6
- php: 5.5
- php: 5.4
- php: 5.3
dist: precise

before_script:
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.0" || ${TRAVIS_PHP_VERSION:0:3} == "7.1" ]]; then composer require phpunit/phpunit "~5.7"; fi
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.0" || ${TRAVIS_PHP_VERSION:0:3} == "7.1" || ${TRAVIS_PHP_VERSION:0:3} == "7.2" ]]; then composer require phpunit/phpunit "~5.7"; fi
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.4" || ${TRAVIS_PHP_VERSION:0:3} == "5.3" ]]; then composer require satooshi/php-coveralls '~1.0'; else composer require satooshi/php-coveralls; fi
- composer install

script:
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.0" || ${TRAVIS_PHP_VERSION:0:3} == "7.1" ]]; then vendor/bin/phpunit --version && vendor/bin/phpunit --coverage-clover tmp/clover.xml; else phpunit --version && phpunit --coverage-clover tmp/clover.xml; fi
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.0" || ${TRAVIS_PHP_VERSION:0:3} == "7.1" || ${TRAVIS_PHP_VERSION:0:3} == "7.2" ]]; then vendor/bin/phpunit --version && vendor/bin/phpunit --coverage-clover tmp/clover.xml; else phpunit --version && phpunit --coverage-clover tmp/clover.xml; fi

after_success:
- php vendor/bin/coveralls -v
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2.0.24

- Rename Object to BaseObject (as Object is reserved keyword from PHP 7.2)

2.0.23

- Made all string equality check strict
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Simple Access Control List (ACL) for PHP.

[![Build Status](https://secure.travis-ci.org/alexshelkov/SimpleAcl.png)](http://travis-ci.org/alexshelkov/SimpleAcl)
[![Build Status](https://travis-ci.org/alexshelkov/SimpleAcl.svg?branch=master)](https://travis-ci.org/alexshelkov/SimpleAcl)
[![Coverage Status](https://coveralls.io/repos/alexshelkov/SimpleAcl/badge.svg?branch=master&service=github)](https://coveralls.io/github/alexshelkov/SimpleAcl?branch=master)
_____________________________________________________________________________________________________________________
#### Install
Expand Down

0 comments on commit 9d99f55

Please sign in to comment.