Adding travis file

This commit is contained in:
Tobias Nyholm
2017-12-17 12:55:14 +01:00
parent 5314397ba6
commit 33dfa07f4b
+26
View File
@@ -0,0 +1,26 @@
language: php
sudo: false
cache:
directories:
- $HOME/.composer/cache/files
matrix:
fast_finish: true
include:
- php: 7.1
env: SKELETON_VERSION="^3.4"
- php: 7.1
env: SKELETON_VERSION="^4.0"
before_install:
- phpenv config-rm xdebug.ini || true
- export SYMFONY_ENDPOINT=https://symfony.sh/r/github.com/symfony/recipes/${TRAVIS_PULL_REQUEST}
- export PACKAGES=$(curl -s $SYMFONY_ENDPOINT | sed -En 's/.*composer req "([^"]+)".*/\1/p')
install:
- composer create-project "symfony/skeleton:${SKELETON_VERSION}" flex
- cd flex
script:
- composer req "${PACKAGES}"