Skip to content

Commit

Permalink
Merge pull request #124 from owncloud/drop-php-54-and-55
Browse files Browse the repository at this point in the history
Remove 5.4 and 5.5 support
  • Loading branch information
DeepDiver1975 committed Sep 20, 2016
2 parents 7ef0f05 + 43b05c1 commit 38b30cd
Showing 1 changed file with 31 additions and 11 deletions.
42 changes: 31 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
sudo: false
language: php
php:
- 5.4
- 5.5
- 5.6
- 7

Expand All @@ -22,23 +19,46 @@ before_install:
- wget https://raw.githubusercontent.com/owncloud/administration/master/travis-ci/before_install.sh
- bash ./before_install.sh $APP_NAME $CORE_BRANCH $DB

# Add some output debugging information
- cd ../core
- ./occ check
- ./occ status
- ./occ app:list
- ./occ app:enable $APP_NAME
- ./occ app:list

script:
# Test lint
- cd ../core/apps/$APP_NAME
- find . -name \*.php -exec php -l "{}" \;
- cd apps/$APP_NAME/

# Test the app
- sh -c "if [ '$CODECHECK' = '1' ]; then find . -name \*.php -exec php -l \"{}\" \;; fi"
- cd ../../
- sh -c "if [ '$CODECHECK' = '1' ]; then ./occ app:check-code $APP_NAME -c private -c strong-comparison; fi"
- sh -c "if [ '$CODECHECK' = '2' ]; then ./occ app:check-code $APP_NAME -c deprecation; fi"
- cd apps/$APP_NAME/

# Run phpunit tests
- cd tests
- phpunit --configuration phpunit.xml
- sh -c "if [ '$CODECHECK' != '1' -a '$CODECHECK' != '2' ]; then phpunit --configuration phpunit.xml; fi"
- cd ..

# Create coverage report
- sh -c "if [ '$TRAVIS_PHP_VERSION' != 'hhvm' ]; then wget https://scrutinizer-ci.com/ocular.phar; fi"
- sh -c "if [ '$TRAVIS_PHP_VERSION' != 'hhvm' ]; then php ocular.phar code-coverage:upload --format=php-clover clover.xml; fi"
- cd tests
- sh -c "if [ '$CODECHECK' != '1' -a '$CODECHECK' != '2' ]; then wget https://scrutinizer-ci.com/ocular.phar; fi"
- sh -c "if [ '$CODECHECK' != '1' -a '$CODECHECK' != '2' ]; then php ocular.phar code-coverage:upload --format=php-clover clover.xml; fi"
- cd ..

matrix:
include:
- php: 5.4
- php: 5.6
env: DB=mysql
- php: 5.4
- php: 5.6
env: DB=pgsql
- php: 5.6
env: DB=mysql;CODECHECK=1
- php: 5.6
env: DB=mysql;CODECHECK=2
allow_failures:
- env: DB=mysql;CODECHECK=2
fast_finish: true

0 comments on commit 38b30cd

Please sign in to comment.