mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-12 10:26:32 +00:00
Try running all tests on nightly
This commit is contained in:
+14
-14
@@ -10,7 +10,6 @@ cache:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- SYMFONY_PHPUNIT_REMOVE_RETURN_TYPEHINT=1
|
|
||||||
- SYMFONY_PHPUNIT_DISABLE_RESULT_CACHE=1
|
- SYMFONY_PHPUNIT_DISABLE_RESULT_CACHE=1
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
@@ -21,23 +20,24 @@ install:
|
|||||||
- travis_retry composer install
|
- travis_retry composer install
|
||||||
- export PHPUNIT=$(readlink -f ./vendor/bin/simple-phpunit)
|
- export PHPUNIT=$(readlink -f ./vendor/bin/simple-phpunit)
|
||||||
- $PHPUNIT install
|
- $PHPUNIT install
|
||||||
- ([[ $TRAVIS_PHP_VERSION = "nightly" ]] || (cd extra/cssinliner-extra && travis_retry composer install))
|
- (cd extra/cssinliner-extra && travis_retry composer install)
|
||||||
- ([[ $TRAVIS_PHP_VERSION = "nightly" ]] || (cd extra/html-extra && travis_retry composer install))
|
- (cd extra/html-extra && travis_retry composer install)
|
||||||
- ([[ $TRAVIS_PHP_VERSION = "nightly" ]] || (cd extra/inky-extra && travis_retry composer install))
|
- (cd extra/inky-extra && travis_retry composer install)
|
||||||
- ([[ $TRAVIS_PHP_VERSION = "nightly" ]] || (cd extra/intl-extra && travis_retry composer install))
|
- (cd extra/intl-extra && travis_retry composer install)
|
||||||
- ([[ $TRAVIS_PHP_VERSION = "nightly" ]] || (cd extra/markdown-extra && travis_retry composer install))
|
- ([[ $TRAVIS_PHP_VERSION = nightly ]] && (cd extra/markdown-extra && composer config platform.php 7.4.99) || true)
|
||||||
- ([[ $TRAVIS_PHP_VERSION = 7.1 ]] || [[ $TRAVIS_PHP_VERSION = "nightly" ]] || (cd extra/string-extra && travis_retry composer install))
|
- (cd extra/markdown-extra && travis_retry composer install)
|
||||||
|
- ([[ $TRAVIS_PHP_VERSION = 7.1 ]] || (cd extra/string-extra && travis_retry composer install))
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- $PHPUNIT
|
- $PHPUNIT
|
||||||
- ([[ $TRAVIS_PHP_VERSION = "nightly" ]] || (cd extra/cssinliner-extra && $PHPUNIT))
|
- (cd extra/cssinliner-extra && $PHPUNIT)
|
||||||
- ([[ $TRAVIS_PHP_VERSION = "nightly" ]] || (cd extra/html-extra && $PHPUNIT))
|
- (cd extra/html-extra && $PHPUNIT)
|
||||||
- ([[ $TRAVIS_PHP_VERSION = "nightly" ]] || (cd extra/inky-extra && $PHPUNIT))
|
- (cd extra/inky-extra && $PHPUNIT)
|
||||||
- ([[ $TRAVIS_PHP_VERSION = "nightly" ]] || (cd extra/intl-extra && $PHPUNIT))
|
- (cd extra/intl-extra && $PHPUNIT)
|
||||||
- ([[ $TRAVIS_PHP_VERSION = "nightly" ]] || (cd extra/markdown-extra && $PHPUNIT))
|
- (cd extra/markdown-extra && $PHPUNIT)
|
||||||
- ([[ $TRAVIS_PHP_VERSION = 7.1 ]] || [[ $TRAVIS_PHP_VERSION = "nightly" ]] || (cd extra/string-extra && $PHPUNIT))
|
- ([[ $TRAVIS_PHP_VERSION = 7.1 ]] || (cd extra/string-extra && $PHPUNIT))
|
||||||
|
|
||||||
matrix:
|
jobs:
|
||||||
fast_finish: true
|
fast_finish: true
|
||||||
include:
|
include:
|
||||||
- php: 7.1
|
- php: 7.1
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ composer require --no-update webflo/drupal-core-require-dev "egulias/email-valid
|
|||||||
composer update
|
composer update
|
||||||
(cd vendor/twig && rm -rf twig && ln -sf $REPO twig)
|
(cd vendor/twig && rm -rf twig && ln -sf $REPO twig)
|
||||||
echo '$config["system.logging"]["error_level"] = "verbose";' >> web/sites/default/settings.php
|
echo '$config["system.logging"]["error_level"] = "verbose";' >> web/sites/default/settings.php
|
||||||
composer require drupal/core:8.7.x-dev webflo/drupal-core-require-dev:8.7.x-dev "egulias/email-validator:^2.0"
|
|
||||||
php ./web/core/scripts/drupal install --no-interaction demo_umami > output
|
php ./web/core/scripts/drupal install --no-interaction demo_umami > output
|
||||||
perl -p -i -e 's/^([A-Za-z]+)\: (.+)$/export DRUPAL_\1=\2/' output
|
perl -p -i -e 's/^([A-Za-z]+)\: (.+)$/export DRUPAL_\1=\2/' output
|
||||||
source output
|
source output
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
"homepage": "https://twig.symfony.com",
|
"homepage": "https://twig.symfony.com",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"minimum-stability": "dev",
|
"minimum-stability": "dev",
|
||||||
"prefer-stable": true,
|
|
||||||
"authors": [
|
"authors": [
|
||||||
{
|
{
|
||||||
"name": "Fabien Potencier",
|
"name": "Fabien Potencier",
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
"homepage": "https://twig.symfony.com",
|
"homepage": "https://twig.symfony.com",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"minimum-stability": "dev",
|
"minimum-stability": "dev",
|
||||||
"prefer-stable": true,
|
|
||||||
"authors": [
|
"authors": [
|
||||||
{
|
{
|
||||||
"name": "Fabien Potencier",
|
"name": "Fabien Potencier",
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
"homepage": "https://twig.symfony.com",
|
"homepage": "https://twig.symfony.com",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"minimum-stability": "dev",
|
"minimum-stability": "dev",
|
||||||
"prefer-stable": true,
|
|
||||||
"authors": [
|
"authors": [
|
||||||
{
|
{
|
||||||
"name": "Fabien Potencier",
|
"name": "Fabien Potencier",
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
"homepage": "https://twig.symfony.com",
|
"homepage": "https://twig.symfony.com",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"minimum-stability": "dev",
|
"minimum-stability": "dev",
|
||||||
"prefer-stable": true,
|
|
||||||
"authors": [
|
"authors": [
|
||||||
{
|
{
|
||||||
"name": "Fabien Potencier",
|
"name": "Fabien Potencier",
|
||||||
|
|||||||
@@ -307,7 +307,7 @@ final class IntlExtension extends AbstractExtension
|
|||||||
return $this->formatDateTime($env, $date, 'none', $timeFormat, $pattern, $timezone, $calendar, $locale);
|
return $this->formatDateTime($env, $date, 'none', $timeFormat, $pattern, $timezone, $calendar, $locale);
|
||||||
}
|
}
|
||||||
|
|
||||||
private function createDateFormatter(?string $locale, ?string $dateFormat, ?string $timeFormat, string $pattern = '', \DateTimeZone $timezone, string $calendar): \IntlDateFormatter
|
private function createDateFormatter(?string $locale, ?string $dateFormat, ?string $timeFormat, string $pattern, \DateTimeZone $timezone, string $calendar): \IntlDateFormatter
|
||||||
{
|
{
|
||||||
if (null !== $dateFormat && !isset(self::DATE_FORMATS[$dateFormat])) {
|
if (null !== $dateFormat && !isset(self::DATE_FORMATS[$dateFormat])) {
|
||||||
throw new RuntimeError(sprintf('The date format "%s" does not exist, known formats are: "%s".', $dateFormat, implode('", "', array_keys(self::DATE_FORMATS))));
|
throw new RuntimeError(sprintf('The date format "%s" does not exist, known formats are: "%s".', $dateFormat, implode('", "', array_keys(self::DATE_FORMATS))));
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
"homepage": "https://twig.symfony.com",
|
"homepage": "https://twig.symfony.com",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"minimum-stability": "dev",
|
"minimum-stability": "dev",
|
||||||
"prefer-stable": true,
|
|
||||||
"authors": [
|
"authors": [
|
||||||
{
|
{
|
||||||
"name": "Fabien Potencier",
|
"name": "Fabien Potencier",
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
"homepage": "https://twig.symfony.com",
|
"homepage": "https://twig.symfony.com",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"minimum-stability": "dev",
|
"minimum-stability": "dev",
|
||||||
"prefer-stable": true,
|
|
||||||
"authors": [
|
"authors": [
|
||||||
{
|
{
|
||||||
"name": "Fabien Potencier",
|
"name": "Fabien Potencier",
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
"homepage": "https://twig.symfony.com",
|
"homepage": "https://twig.symfony.com",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"minimum-stability": "dev",
|
"minimum-stability": "dev",
|
||||||
"prefer-stable": true,
|
|
||||||
"authors": [
|
"authors": [
|
||||||
{
|
{
|
||||||
"name": "Fabien Potencier",
|
"name": "Fabien Potencier",
|
||||||
|
|||||||
Reference in New Issue
Block a user