Skip to content

Commit

Permalink
Merge pull request #16 from fabiang/speedup-build
Browse files Browse the repository at this point in the history
Speedup build and reduced package size
  • Loading branch information
frankdejonge committed Dec 8, 2015
2 parents 5e3f97a + 72901bc commit 0724230
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 10 deletions.
9 changes: 9 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
tests export-ignore
.gitattributes export-ignore
.gitignore export-ignore
.scrutinizer.yml export-ignore
.travis.yml export-ignore
changelog.md export-ignore
composer.lock export-ignore
phpunit.hhvm.xml export-ignore
phpunit.xml export-ignore
24 changes: 19 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,36 @@
language: php

sudo: false

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

env:
matrix:
- PREFER_LOWEST="--prefer-lowest"
- PREFER_LOWEST=""

php:
- 5.4
- 5.5
- 5.6
- 7
- hhvm

before_install:
- composer self-up
- composer config --global github-oauth.github.com $GITHUB_OAUTH_TOKEN

install:
- travis_retry composer install --no-interaction --prefer-source
- composer update --no-interaction --prefer-stable $PREFER_LOWEST

script:
- vendor/bin/phpunit
- vendor/bin/phpunit --verbose

after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- bash -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then php ocular.phar code-coverage:upload --format=php-clover coverage.xml; fi;'

matrix:
allow_failures:
- php: hhvm
fast_finish: true
fast_finish: true
1 change: 0 additions & 1 deletion phpunit.hhvm.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="./phpunit.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
Expand Down
3 changes: 0 additions & 3 deletions phpunit.php

This file was deleted.

1 change: 0 additions & 1 deletion phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="./phpunit.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
Expand Down

0 comments on commit 0724230

Please sign in to comment.