Skip to content

Commit

Permalink
Travis: Prevent PHP53 to run API tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurHoaro committed May 8, 2016
1 parent fc6a4fa commit a273c20
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
19 changes: 17 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,31 @@ php:
- 5.6
- 5.5
- 5.4
# - 5.3 doesn't provide a 'php' webserver as required in tests/api/run.sh
- 5.3 # doesn't provide a 'php' webserver as required in tests/api/run.sh
install:
- composer self-update
- composer install
addons:
apt:
packages:
- xsltproc
env:
- HTTPTEST=1
- HTTPTEST=0
matrix:
exclude:
- php: 5.3
env: HTTPTEST=1
- php: 5.4
env: HTTPTEST=0
- php: 5.5
env: HTTPTEST=0
- php: 5.6
env: HTTPTEST=0
- php: 7.0
env: HTTPTEST=0
script:
- make clean
- make check_permissions
- make test
- sh tests/api/run.sh
- if [[ $HTTPTEST == 1 ]]; then sh tests/api/run.sh; fi
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ test:
@echo "PHPUNIT"
@echo "-------"
@mkdir -p sandbox
@$(BIN)/phpunit tests
@$(BIN)/phpunit --configuration phpunit.xml

##
# Targets for repository and documentation maintenance
Expand Down
6 changes: 6 additions & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.5/phpunit.xsd"
colors="true">
<testsuites>
<testsuite name="unit-tests">
<directory>tests</directory>
<exclude>tests/api</exclude>
</testsuite>
</testsuites>
<filter>
<whitelist addUncoveredFilesFromWhitelist="true">
<directory suffix=".php">application</directory>
Expand Down

0 comments on commit a273c20

Please sign in to comment.