Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a new sorting option for featured news. #371

Closed
wants to merge 9 commits into from

Travis CI - Pull Request

Success

ran Jun 6, 2019 in 6 minutes

1c2472f by @leofeyer

Build Passed

The build passed, just like the previous build.

Details

This is a pull request build.

It is running a build against the merge commit, after merging #371 Add a new sorting option for featured news..
Any changes that have been made to the master branch before the build ran are also included.

Jobs and Stages

This build has five jobs, running in parallel.

Stage 1: Test

This stage passed.

Job PHP State
1234.1 Test installing the split repos 7.3 passed
1234.2 Test installing the lowest dependencies 7.3 passed
1234.3 7.1 passed
1234.4 7.2 passed
1234.5 7.3 passed

Build Configuration

Build Option Setting
Language PHP
Operating System Linux (Xenial)
Build Configuration
{
  "os": "linux",
  "dist": "xenial",
  "jobs": {
    "include": [
      {
        "php": 7.3,
        "name": "Test installing the split repos",
        "stage": "test",
        "script": [
          "cd $TRAVIS_BUILD_DIR/calendar-bundle && run_split_tests",
          "cd $TRAVIS_BUILD_DIR/core-bundle && run_split_tests",
          "cd $TRAVIS_BUILD_DIR/faq-bundle && run_split_tests",
          "cd $TRAVIS_BUILD_DIR/manager-bundle && run_split_tests",
          "cd $TRAVIS_BUILD_DIR/news-bundle && run_split_tests"
        ]
      },
      {
        "php": 7.3,
        "name": "Test installing the lowest dependencies",
        "stage": "test",
        "script": [
          "run_tests",
          "php vendor/bin/phpstan analyse core-bundle/src core-bundle/tests --level=3 --no-progress",
          "php vendor/bin/monorepo-tools composer-json --validate"
        ],
        "install": [
          "phpenv config-rm xdebug.ini || true",
          "composer update --prefer-lowest --prefer-stable --no-interaction --no-suggest"
        ]
      },
      {
        "php": 7.1,
        "stage": "test",
        "script": [
          "run_tests",
          "php vendor/bin/phpstan analyse core-bundle/src core-bundle/tests --level=3 --no-progress",
          "php vendor/bin/monorepo-tools composer-json --validate"
        ],
        "install": [
          "phpenv config-rm xdebug.ini || true",
          "composer update --no-interaction --no-suggest"
        ]
      },
      {
        "php": 7.2,
        "stage": "test",
        "script": [
          "run_tests",
          "php vendor/bin/phpstan analyse core-bundle/src core-bundle/tests --level=3 --no-progress",
          "php vendor/bin/monorepo-tools composer-json --validate"
        ],
        "install": [
          "phpenv config-rm xdebug.ini || true",
          "composer update --no-interaction --no-suggest"
        ]
      },
      {
        "php": 7.3,
        "stage": "test",
        "script": [
          "phpdbg -qrr vendor/bin/phpunit -c calendar-bundle --coverage-clover=calendar-bundle.xml",
          "phpdbg -qrr vendor/bin/phpunit -c core-bundle --testsuite=coverage --coverage-clover=core-bundle.xml",
          "php vendor/bin/phpunit -c core-bundle --testsuite=functional",
          "phpdbg -qrr vendor/bin/phpunit -c faq-bundle --coverage-clover=faq-bundle.xml",
          "phpdbg -qrr vendor/bin/phpunit -c manager-bundle --coverage-clover=manager-bundle.xml",
          "phpdbg -qrr vendor/bin/phpunit -c news-bundle --coverage-clover=news-bundle.xml",
          "php vendor/bin/phpstan analyse core-bundle/src core-bundle/tests --level=3 --no-progress",
          "php vendor/bin/monorepo-tools composer-json --validate"
        ],
        "install": [
          "phpenv config-rm xdebug.ini || true",
          "composer update --no-interaction --no-suggest"
        ],
        "after_script": [
          "php vendor/bin/php-coveralls -o coveralls-upload.json -x calendar-bundle.xml -x core-bundle.xml -x faq-bundle.xml -x manager-bundle.xml -x news-bundle.xml"
        ]
      },
      {
        "if": "type = cron",
        "php": "7.4snapshot",
        "stage": "test",
        "script": [
          "run_tests",
          "php vendor/bin/phpstan analyse core-bundle/src core-bundle/tests --level=3 --no-progress",
          "php vendor/bin/monorepo-tools composer-json --validate"
        ],
        "install": [
          "phpenv config-rm xdebug.ini || true",
          "composer update --no-interaction --no-suggest"
        ]
      },
      {
        "if": "type = cron",
        "php": "nightly",
        "stage": "test",
        "script": [
          "run_tests",
          "php vendor/bin/phpstan analyse core-bundle/src core-bundle/tests --level=3 --no-progress",
          "php vendor/bin/monorepo-tools composer-json --validate"
        ],
        "install": [
          "phpenv config-rm xdebug.ini || true",
          "composer update --no-interaction --no-suggest"
        ]
      },
      {
        "if": "type = push AND (branch =~ /^(master|\\d+\\.\\d+)$/ OR tag IS present)",
        "php": 7.3,
        "name": "Split the monorepo",
        "stage": "split",
        "script": [
          "php vendor/bin/monorepo-tools split $TRAVIS_BRANCH --cache-dir $HOME/.monorepo-split-cache"
        ],
        "install": [
          "phpenv config-rm xdebug.ini || true",
          "rm composer.json",
          "composer require contao/monorepo-tools:dev-master --no-interaction --no-suggest"
        ],
        "before_install": true
      }
    ],
    "allow_failures": [
      {
        "php": "7.4snapshot"
      },
      {
        "php": "nightly"
      }
    ]
  },
  "cache": {
    "directories": [
      "$HOME/.composer/cache",
      "$HOME/.monorepo-split-cache"
    ]
  },
  "group": "stable",
  ".result": "configured",
  "language": "php",
  "services": [
    "mysql"
  ],
  "global_env": [
    "COMPOSER_ALLOW_XDEBUG=0",
    "COMPOSER_MEMORY_LIMIT=-1"
  ],
  "before_install": [
    "# Helper functions\nrun_tests () {\n  local status=0\n  php vendor/bin/phpunit -c calendar-bundle --colors=always || status=1\n  php vendor/bin/phpunit -c core-bundle --colors=always || status=1\n  php vendor/bin/phpunit -c core-bundle --testsuite=functional --colors=always || status=1\n  php vendor/bin/phpunit -c faq-bundle --colors=always || status=1\n  php vendor/bin/phpunit -c installation-bundle --colors=always || status=1\n  php vendor/bin/phpunit -c manager-bundle --colors=always || status=1\n  php vendor/bin/phpunit -c news-bundle --colors=always || status=1\n  return $status\n}\nrun_split_tests () {\n  php -r '\n    $data = json_decode(file_get_contents(__DIR__.\"/composer.json\"), true);\n    if (\"contao/core-bundle\" !== $data[\"name\"]) {\n      $data[\"repositories\"][0][\"type\"] = \"path\";\n      $data[\"repositories\"][0][\"url\"] = \"../core-bundle\";\n    }\n    if (\"contao/installation-bundle\" !== $data[\"name\"]) {\n      $data[\"repositories\"][1][\"type\"] = \"path\";\n      $data[\"repositories\"][1][\"url\"] = \"../installation-bundle\";\n    }\n    file_put_contents(__DIR__.\"/composer.json\", json_encode($data, JSON_UNESCAPED_SLASHES));\n  '\n  composer update --no-interaction --no-suggest\n  php vendor/bin/phpunit --colors=always\n}\n",
    "mysql -e \"CREATE database contao_test\""
  ]
}
You can’t perform that action at this time.