Files
symfony-flex-recipes-contrib/.travis.yml
T
2019-12-10 09:17:21 +01:00

31 lines
823 B
YAML

language: php
sudo: false
cache:
directories:
- $HOME/.composer/cache/files
matrix:
fast_finish: true
include:
- php: 7.4
env: SKELETON_VERSION="^3.4"
- php: 7.4
env: SKELETON_VERSION="^4.4"
- php: 7.4
env: SKELETON_VERSION="^5.0"
before_install:
- phpenv config-rm xdebug.ini || true
- export SYMFONY_ENDPOINT=https://flex.symfony.com/r/github.com/symfony/recipes-contrib/${TRAVIS_PULL_REQUEST}
- export PACKAGES=$(curl -s $SYMFONY_ENDPOINT | sed -En 's/.*composer req "([^"]+)".*/\1/p')
- echo "$PACKAGES"
install:
- composer create-project "symfony/skeleton:${SKELETON_VERSION}" flex
- cd flex
- composer config extra.symfony.allow-contrib true
script:
- composer req --ignore-platform-reqs $(echo $PACKAGES)