Skip to content

[TASK] Test with both latest and oldest dependencies #75

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 7, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 18 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
language: php

matrix:
include:
- php: 7.0
- php: 7.1
- php: 7.2
php:
- 7.0
- 7.1
- 7.2

services:
- mysql

env:
global:
- PHPLIST_DATABASE_NAME=phplist
- PHPLIST_DATABASE_USER=travis
- PHPLIST_DATABASE_PASSWORD=''
- PHPLIST_DATABASE_NAME=phplist PHPLIST_DATABASE_USER=travis PHPLIST_DATABASE_PASSWORD=''
matrix:
- DEPENDENCIES=latest
- DEPENDENCIES=oldest

notifications:
slack:
Expand All @@ -33,7 +33,16 @@ before_install:
- phpenv config-rm xdebug.ini

install:
- composer install
- >
echo;
if [ "$DEPENDENCIES" = "latest" ]; then
echo "Installing the latest dependencies";
composer update --with-dependencies --prefer-stable --prefer-dist
else
echo "Installing the lowest dependencies";
composer update --with-dependencies --prefer-stable --prefer-dist --prefer-lowest
fi;
composer show;

before_script:
- >
Expand Down
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@
"require-dev": {
"phpunit/phpunit": "^6.2.2",
"phpunit/dbunit": "^3.0.0",
"squizlabs/php_codesniffer": "^3.0.1",
"squizlabs/php_codesniffer": "^3.0.0",
"phpstan/phpstan": "^0.7.0",
"nette/caching": "^2.5.0 || ^3.0.0",
"nikic/php-parser": "^3.0.0",
"phpmd/phpmd": "^2.6.0"
},
"autoload": {
Expand Down