Skip to content

Commit

Permalink
[2.0] refactored travis config to execute php 7.1 tests with simple-p…
Browse files Browse the repository at this point in the history
…hpunit (#1029)
  • Loading branch information
sebastianblum authored and dbu committed Jan 3, 2018
1 parent 28a9248 commit bc0ed2b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 13 deletions.
33 changes: 21 additions & 12 deletions .travis.yml
Expand Up @@ -2,32 +2,41 @@ sudo: false

language: php

php:
- 7.1
- 7.2

cache:
directories:
- $HOME/.composer/cache/files
- $HOME/.composer/cache

env:
global:
- SYMFONY_DEPRECATIONS_HELPER=weak
- SYMFONY_VERSION=3.4.*
- SYMFONY_DEPRECATIONS_HELPER="weak_vendors"

matrix:
include:
- env: SYMFONY_VERSION=4.0.*
fast_finish: true

include:
- php: 7.1
env: SYMFONY_VERSION=4.0.*
- php: 7.1
env: SYMFONY_VERSION=3.4.*
- php: 7.2
env: SYMFONY_VERSION=4.0.*
- php: 7.2
env: SYMFONY_VERSION=3.4.*
- php: 7.2
env: SYMFONY_VERSION=dev-master
- php: nightly
env: SYMFONY_VERSION=4.0.*
allow_failures:
- env: SYMFONY_VERSION=dev-master
- php: nightly

before_install:
- bash ./.travis/exec-before.bash

install:
- travis_retry composer require "symfony/symfony:${SYMFONY_VERSION}" $COMPOSER_FLAGS

script:
- ./vendor/bin/simple-phpunit -vvv || ./vendor/bin/phpunit -vvv
- ./vendor/bin/simple-phpunit -vvv

after_script:
- bash ./.travis/exec-after.bash
- bash ./.travis/exec-after.bash
1 change: 0 additions & 1 deletion composer.json
Expand Up @@ -38,7 +38,6 @@
"enqueue/enqueue-bundle": "^0.7|^0.8",
"friendsofphp/php-cs-fixer": "^1.0|^2.0",
"league/flysystem": "^1.0",
"phpunit/phpunit": "^6.0",
"psr/log": "^1.0",
"satooshi/php-coveralls": "^1.0",
"symfony/browser-kit": "^3.0|^4.0",
Expand Down

0 comments on commit bc0ed2b

Please sign in to comment.