Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Commit

Permalink
Updated CI integrations
Browse files Browse the repository at this point in the history
  • Loading branch information
weierophinney committed Jun 22, 2016
1 parent 49f2535 commit b6eb91f
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 14 deletions.
2 changes: 2 additions & 0 deletions .coveralls.yml
@@ -0,0 +1,2 @@
coverage_clover: clover.xml
json_path: coveralls-upload.json
5 changes: 4 additions & 1 deletion .gitignore
@@ -1,2 +1,5 @@
composer.lock
vendor/
clover.xml
composer.lock
coveralls-upload.json
phpunit.xml
25 changes: 13 additions & 12 deletions .travis.yml
Expand Up @@ -9,32 +9,33 @@ cache:
matrix:
fast_finish: true
include:
- php: 5.5
env:
- EXECUTE_CS_CHECK=true
- php: 5.6
env:
- EXECUTE_COVERAGE=true
- TEST_COVERAGE=true
- php: 7
env:
- EXECUTE_CS_CHECK=true
- CS_CHECK=true
- php: hhvm
env:
- EXECUTE_CS_CHECK=true
allow_failures:
- php: 7
- php: hhvm

notifications:
irc: "irc.freenode.org#apigility-dev"
email: false

before_install:
- if [[ $EXECUTE_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
- composer self-update
- if [[ $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
- travis_retry composer self-update

install:
- travis_retry composer install --no-interaction --ignore-platform-reqs --prefer-source
- if [[ $TEST_COVERAGE == 'true' ]]; then composer require --dev --no-update "satooshi/php-coveralls:^1.0" ; fi
- travis_retry composer install --no-interaction
- composer show

script:
- if [[ $EXECUTE_CS_CHECK == 'true' ]]; then ./vendor/bin/phpcs ; fi
- if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; fi
- if [[ $TEST_COVERAGE != 'true' ]]; then composer test ; fi
- if [[ $CS_CHECK == 'true' ]]; then composer cs ; fi

after_script:
- if [[ $TEST_COVERAGE == 'true' ]]; then composer coveralls ; fi
4 changes: 3 additions & 1 deletion composer.json
Expand Up @@ -40,8 +40,10 @@
"@cs",
"@test"
],
"coveralls": "coveralls",
"cs": "phpcs",
"cs-fix": "phpcbf",
"test": "phpunit"
"test": "phpunit",
"test-coverage": "phpunit --coverage-clover clover.xml"
}
}

0 comments on commit b6eb91f

Please sign in to comment.