Skip to content
Closed
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
43 changes: 3 additions & 40 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,56 +1,19 @@
sudo: false
language: php

## Cache composer bits
cache:
directories:
- $HOME/.composer/cache/files

## Build matrix for lowest and highest possible targets
matrix:
include:
- php: 7.0
env:
- qaExtended=true
- php: 7.1
- php: nightly
env:
- dropPlatform=false
- php: 7.0
env:
- dependencies=lowest
- php: 7.1
env:
- dependencies=lowest
- php: nightly
env:
- dependencies=lowest
- dropPlatform=false
- php: 7.0
env:
- dependencies=highest
- php: 7.1
env:
- dependencies=highest
- php: nightly
env:
- dependencies=highest
- dropPlatform=false

## Install or update dependencies
install:
- composer validate
- if [ -z "$dropPlatform" ]; then composer config --unset platform.php; fi;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder whether it is caused to some configuration issues. What is this doing ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting, so removing that solved the issue 0_o? So what that does is unset the following from composer.json

{
  "config": {
    "platform": {
      "php": "7.0"
    }
}

That is there to ensure no packages (or versions of them) cam be installed using composer require. For example my local PHP version is 7.2 and packages like doctrine/annotation have ^7.1 and maybe even ^7.2 versions available. When running composer require doctrine/annotation a version is selected that can be used on 7.0 even though my local verion is 7.2.

- if [ -z "$dropPlatform" ]; then composer update --lock; fi;
- if [ -z "$qaExtended" ]; then phpenv config-rm xdebug.ini || :; fi;
- if [ -z "$dependencies" ]; then composer install --prefer-dist; fi;
- if [ "$dependencies" = "lowest" ]; then composer update --prefer-lowest --prefer-dist -n; fi;
- if [ "$dependencies" = "highest" ]; then composer update --prefer-dist -n; fi;
- composer install
- composer why-not phpunit/phpunit
- composer show

## Run the actual test
script:
- if [ -z "$qaExtended" ]; then make ci; fi;
- if [ "$qaExtended" = "true" ]; then make ci-extended; fi;

## Gather coverage and set it to coverage servers
after_script: if [ "$qaExtended" = "true" ]; then make ci-coverage; fi;