Skip to content

Commit

Permalink
Merge pull request KnpLabs#265 from stof/improve_travis
Browse files Browse the repository at this point in the history
Improve the Travis setup
  • Loading branch information
stof authored Aug 22, 2017
2 parents c9f9c15 + 24a7fd3 commit fca5885
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
17 changes: 13 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,39 @@ sudo: false
cache:
directories:
- $HOME/.composer/cache/files
- $HOME/symfony-bridge/.phpunit

php:
- 5.3
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
- nightly

env:
global:
- SYMFONY_PHPUNIT_DIR="$HOME/symfony-bridge/.phpunit"

matrix:
include:
- php: 5.3
env: COMPOSER_FLAGS='--prefer-lowest --prefer-stable' SYMFONY_DEPRECATIONS_HELPER=weak
- php: 5.6
env: COMPOSER_FLAGS='--prefer-lowest --prefer-stable' SYMFONY_DEPRECATIONS_HELPER=weak
- php: 7.1
env: DEPENDENCIES=dev
- php: hhvm
dist: trusty
- php: 5.3
dist: precise

before_install:
- composer self-update
- if [ "$DEPENDENCIES" = "dev" ]; then perl -pi -e 's/^}$/,"minimum-stability":"dev"}/' composer.json; fi;
# force the PHPUnit version for PHP 7.2, until https://github.com/symfony/symfony/issues/23943 is resolved
- if [ "$TRAVIS_PHP_VERSION" = "nightly" ]; then export SYMFONY_PHPUNIT_VERSION="6.3"; fi;

install:
- composer update $COMPOSER_FLAGS
- ./vendor/bin/simple-phpunit install

script:
- php ./vendor/bin/simple-phpunit
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2011 KnpLabs - http://www.knplabs.com
Copyright (c) 2011-present KnpLabs - https://knplabs.com

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
"type": "library",
"description": "An object oriented menu library",
"keywords": ["menu", "tree"],
"homepage": "http://knplabs.com",
"homepage": "https://knplabs.com",
"license": "MIT",
"authors": [
{
"name": "KnpLabs",
"homepage": "http://knplabs.com"
"homepage": "https://knplabs.com"
},
{
"name": "Christophe Coevoet",
Expand Down

0 comments on commit fca5885

Please sign in to comment.