Commit 43e4cf29 authored by Fabien Potencier's avatar Fabien Potencier

tweaked tests to run on stable versions

parent 7c7d81f0
......@@ -12,29 +12,31 @@ cache:
- $HOME/.composer/cache/files
- $HOME/.symfony-phpunit
before_script:
before_install:
- phpenv config-rm xdebug.ini
# Twig 1.x
- if [[ $TWIG_VERSION != 2.0 ]]; then sed -i 's/~1.8|~2.0/~1.8/g' composer.json; fi
# Symfony 2.8
- if [[ $SYMFONY_DEPS_VERSION = 2.8 ]]; then sed -i 's/~2\.8|^3\.0/2.8.*@dev/g' composer.json; fi
- if [[ $SYMFONY_DEPS_VERSION = 2.8 ]]; then sed -i 's/~2\.8|^3\.0/2.8.*/g' composer.json; fi
# Symfony 3.3
- |
if [[ $SYMFONY_DEPS_VERSION = 3.3 ]]; then
sed -i 's/~2\.8|^3\.0/3.3.*@dev/g' composer.json;
composer require --dev --no-update symfony/web-link:3.3.*
sed -i 's/~2\.8|^3\.0/3.3.*/g' composer.json;
composer require --no-update symfony/web-link:3.3.*
fi
# Symfony 3.4
- |
if [[ $SYMFONY_DEPS_VERSION = 3.4 ]]; then
sed -i 's/~2\.8|^3\.0/3.4.*@dev/g' composer.json;
composer require --dev --no-update symfony/web-link:3.3.*
sed -i 's/~2\.8|^3\.0/3.4.*/g' composer.json;
composer require --no-update symfony/web-link:3.4.*
fi
- composer update --no-suggest
install:
- ./vendor/bin/simple-phpunit install
- ./vendor/bin/simple-phpunit install
script: ./vendor/bin/simple-phpunit
......
......@@ -67,6 +67,5 @@
"branch-alias": {
"dev-master": "2.2.x-dev"
}
},
"minimum-stability": "dev"
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment