Skip to content

Prevent exception when trying to load a category not related to the shop

Travis CI / Travis CI - Pull Request succeeded Sep 24, 2019 in 15m 54s

Build Passed

The build passed. This is a change from the previous build, which failed.

Details

This is a pull request build.

It is running a build against the merge commit, after merging #15621 Revert "Fix lang table multi-store data issue".
Any changes that have been made to the 1.7.6.x branch before the build ran are also included.

Jobs and Stages

This build has six jobs, running in parallel.

Job PHP ENV OS State Notes
31484.1 5.6 PRESTASHOP_TEST_TYPE=unit Linux passed
31484.2 7.2 PRESTASHOP_TEST_TYPE=unit Linux passed
31484.3 5.6 PRESTASHOP_TEST_TYPE=integration Linux passed
31484.4 7.2 PRESTASHOP_TEST_TYPE=integration Linux passed
31484.5 7.2 PRESTASHOP_TEST_TYPE=e2e Linux passed
31484.6 7.2 EXTRA_DEPS=phpHigh PRESTASHOP_TEST_TYPE=unit Linux errored This job is allowed to fail.

Build Configuration

Build Option Setting
Language PHP
Operating System Linux (Trusty)
PHP Versions 5.6, 7.2
Build Configuration
{
  "env": [
    "PRESTASHOP_TEST_TYPE=unit",
    "PRESTASHOP_TEST_TYPE=integration",
    "PRESTASHOP_TEST_TYPE=e2e"
  ],
  "php": [
    5.6,
    7.2
  ],
  "dist": "trusty",
  "sudo": "required",
  "cache": {
    "directories": [
      "$HOME/.composer/cache"
    ]
  },
  "group": "stable",
  "addons": {
    "apt": {
      "packages": [
        "dpkg",
        "apache2",
        "postfix",
        "libapache2-mod-fastcgi",
        "libappindicator1",
        "fonts-liberation"
      ]
    },
    "chrome": "stable"
  },
  "matrix": {
    "exclude": [
      {
        "env": "PRESTASHOP_TEST_TYPE=e2e",
        "php": 5.6
      }
    ],
    "include": [
      {
        "env": "EXTRA_DEPS=phpHigh  PRESTASHOP_TEST_TYPE=unit",
        "php": 7.2
      },
      {
        "if": "type = cron",
        "php": 7.2,
        "stage": "deploy",
        "deploy": {
          "acl": "public-read",
          "true": {
            "all_branches": true
          },
          "bucket": "prestashop-core-nightly",
          "provider": "gcs",
          "local-dir": "/tmp/ps-release",
          "skip_cleanup": true,
          "access_key_id": "$GCS_ACCESS_KEY",
          "secret_access_key": "$GCS_ACCESS_SECRET"
        },
        "script": [
          "mkdir -p /tmp/ps-release",
          "php tools/build/CreateRelease.php --destination-dir=/tmp/ps-release",
          "cd /tmp/ps-release && today=`date +%Y-%m-%d-`; for i in *; do mv $i $today$TRAVIS_BRANCH-$i; done && cd -"
        ],
        "before_install": "skip"
      }
    ],
    "allow_failures": [
      {
        "env": "EXTRA_DEPS=phpHigh  PRESTASHOP_TEST_TYPE=unit",
        "php": 7.2
      }
    ]
  },
  "script": [
    "if [ \"$PRESTASHOP_TEST_TYPE\" = \"unit\" ]; then bash tests-legacy/check_file_syntax.sh; bash tests-legacy/check_phpunit.sh; fi",
    "if [ \"$PRESTASHOP_TEST_TYPE\" = \"unit\" ]; then bash tests/check_unit.sh; fi",
    "if [ \"$PRESTASHOP_TEST_TYPE\" = \"integration\" ]; then bash tests/check_integration.sh; fi",
    "if [ $PRESTASHOP_TEST_TYPE = \"e2e\" ]; then bash tests/check_e2e.sh; fi"
  ],
  ".result": "configured",
  "language": "php",
  "services": [
    "mysql"
  ],
  "global_env": [
    "SYMFONY_DEPRECATIONS_HELPER=disabled"
  ],
  "after_deploy": [
    "if [ \"${TRAVIS_EVENT_TYPE}\" = \"cron\" ]; then\n  [[ $TRAVIS_BRANCH = \"develop\" ]] && INSTANCE_TYPE=\"develop\" || INSTANCE_TYPE=\"release\";\n  # make sure instance is stopped. This step does not need to be chained\n  gcloud compute instances stop --zone $GC_ZONE \"${GC_INSTANCE_NAME}-${INSTANCE_TYPE}\";\n  gcloud compute instances add-metadata \"${GC_INSTANCE_NAME}-${INSTANCE_TYPE}\" --zone $GC_ZONE --metadata=TRAVIS_BRANCH=$TRAVIS_BRANCH && \\\n  gcloud compute instances add-metadata \"${GC_INSTANCE_NAME}-${INSTANCE_TYPE}\" --zone $GC_ZONE --metadata-from-file startup-tests-script=tests/E2E/scripts/run-nightly-tests.sh && \\\n  gcloud compute instances add-metadata \"${GC_INSTANCE_NAME}-${INSTANCE_TYPE}\" --zone $GC_ZONE --metadata-from-file startup-reports-script=tests/E2E/scripts/run-nightly-reports.sh && \\\n  gcloud compute instances start --zone $GC_ZONE \"${GC_INSTANCE_NAME}-${INSTANCE_TYPE}\"\nfi\n"
  ],
  "after_script": [
    "sudo cat /var/log/apache2/error.log"
  ],
  "after_failure": [
    "curl -L http://localhost/",
    "cat /etc/apache2/envvars",
    "cat /etc/apache2/sites-available/000-default.conf",
    "sudo cat /var/log/php-fpm.log",
    "sudo ls -l /var/log/apache2",
    "sudo cat /var/log/apache2/other_vhosts_access.log",
    "cat $TRAVIS_BUILD_DIR/var/log/dev.log"
  ],
  "before_deploy": [
    "if [ \"${TRAVIS_EVENT_TYPE}\" = \"cron\" ]; then\n  mkdir -p ${HOME}/.ssh/;\n  echo $GC_INSTANCE_KEY | base64 --decode -i > ${HOME}/.ssh/google_compute_engine && \\\n  echo $GC_INSTANCE_PUB | base64 --decode -i > ${HOME}/.ssh/google_compute_engine.pub && \\\n  chmod 600 ${HOME}/.ssh/* && \\\n  echo $GC_SERVICE_KEY | base64 --decode -i > ${HOME}/gcloud-service-key.json && \\\n  gcloud auth activate-service-account --key-file ${HOME}/gcloud-service-key.json && \\\n  gcloud config set project $GC_PROJECT_ID\nfi\n"
  ],
  "before_script": [
    "if [ \"$EXTRA_DEPS\" = \"phpHigh\" ]; then composer update --ignore-platform-reqs --no-suggest --ansi --no-interaction --no-progress --quiet; else composer install --no-suggest --ansi --prefer-dist --no-interaction --no-progress --quiet; fi",
    "bash travis-scripts/install-prestashop;"
  ],
  "before_install": [
    "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_10.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :10 -ac -screen 0 1600x1200x16",
    "if [[ \"$TRAVIS_REPO_SLUG\" = PrestaShop/PrestaShop ]]; then cp travis-scripts/.composer-auth.json ~/.composer/auth.json; fi;",
    "bash travis-scripts/setup-php-fpm.sh",
    "bash travis-scripts/setup-apache.sh",
    "cp tests-legacy/parameters.yml.travis app/config/parameters.yml"
  ]
}
You can’t perform that action at this time.