Skip to content

Commit

Permalink
Update travis config & composer.json
Browse files Browse the repository at this point in the history
  • Loading branch information
emodric committed Jul 9, 2019
1 parent 00091ae commit b245fd0
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 32 deletions.
47 changes: 19 additions & 28 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,45 +1,36 @@
dist: xenial

language: php

php:
- 7.3

cache:
directories:
- vendor

matrix:
# mark as finished before allow_failures are run
fast_finish: true
include:
- php: 7.1
- php: 7.2
- php: 7.3

# test only master (+ pull requests)
directories:
- $HOME/.cache/composer

branches:
only:
- master

# make sure to update composer to latest available version
before_install:
- phpenv config-add travis.php.ini
before_script:
- echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini

# install dependencies
install:
- travis_wait composer install
# Read-only OAuth token to work around GitHub API rate limits
- composer config -g github-oauth.github.com "4b3b0a83ea27d9544d3608a384c7a14625a98804"

- composer update --no-suggest --prefer-dist

# execute phpunit as the script command
script:
- ./vendor/bin/phpunit -d memory_limit=-1 --colors -c phpunit.xml --coverage-clover=coverage.xml
- composer validate --strict
- vendor/bin/phpunit -c phpunit.xml --coverage-clover=coverage.xml --colors=always

# disable mail notifications
notification:
notifications:
email: false

# reduce depth (history) of git checkout
git:
depth: 30

# we don't need sudo
sudo: false
depth: 1

# send coverage to codecov.io
after_success:
- bash <(curl -s https://codecov.io/bash)
- if [ "$COVERAGE" != "" ] ; then bash <(curl -s https://codecov.io/bash) -F $COVERAGE ; fi
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "netgen/enhanced-selection-bundle",
"description": "Netgen Enhanced Selection bundle for eZ Publish",
"description": "Netgen Enhanced Selection bundle for eZ Platform",
"type": "ezplatform-bundle",
"keywords": [
"ezpublish",
Expand All @@ -24,15 +24,15 @@
"require-dev": {
"phpunit/phpunit": "^8.2",
"netgen/ez-forms-bundle": "^2.0",
"friendsofphp/php-cs-fixer": "~2.0"
"friendsofphp/php-cs-fixer": "^2.15.1"
},
"minimum-stability": "dev",
"prefer-stable": true,
"suggest": {
"netgen/enhancedselection2": "To edit this field type in legacy administration interface",
"netgen/ez-forms-bundle": "Allows use of enhanced selection field type with Symfony forms",
"ezsystems/ezplatform-solr-search-engine": "Allows use of EnhancedSelection search criterion with Solr search engine"
},
"conflict": {
"netgen/enhancedselection2": "<2.0",
"ezsystems/ezplatform-solr-search-engine": "<2.0"
},
"autoload": {
Expand Down

0 comments on commit b245fd0

Please sign in to comment.