HEX
Server: Apache/2.4.34 (Red Hat) OpenSSL/1.0.2k-fips
System: Linux WORDPRESS 3.10.0-1160.118.1.el7.x86_64 #1 SMP Thu Apr 4 03:33:23 EDT 2024 x86_64
User: digital (1020)
PHP: 7.2.24
Disabled: NONE
Upload Files
File: /datos/www/fabricas.colombiatrade.com.co/public_html/modules/contrib/rules/.travis.yml
language: php
# The Travis CI container mode has random functional test fails, so we must use
# sudo here.
sudo: true

php:
  - 5.5
  - 5.6
  - 7

env:
  global:
    # Make the script re-usable for other modules.
    - MODULE=rules
  matrix:
    - DRUPAL_CORE=8.3.x
    - DRUPAL_CORE=8.4.x
    - DRUPAL_CORE=8.5.x

matrix:
  fast_finish: true

mysql:
  database: $MODULE
  username: root
  encoding: utf8

# Be sure to cache composer downloads.
cache:
  directories:
    - $HOME/.composer

before_script:
  - echo $MODULE

  # Remove Xdebug as we don't need it and it causes
  # PHP Fatal error:  Maximum function nesting level of '256' reached.
  # We also don't care if that file exists or not on PHP 7.
  - phpenv config-rm xdebug.ini || true

  # Remember the current $MODULE test directory for later use in the Drupal
  # installation.
  - TESTDIR=$(pwd)
  # Navigate out of module directory to prevent blown stack by recursive module
  # lookup.
  - cd ..

  # Create database.
  - mysql -e "create database $MODULE"
  # Export database variable for kernel tests.
  - export SIMPLETEST_DB=mysql://root:@127.0.0.1/$MODULE
  # Download Drupal 8 core from the Github mirror because it is faster.
  - travis_retry git clone --branch $DRUPAL_CORE --depth 1 https://github.com/drupal/drupal.git
  - cd drupal

  # Reference $MODULE in build site.
  - ln -s $TESTDIR modules/$MODULE
  # Install dependencies.
  - travis_retry git clone --branch 8.x-1.x --depth 1 https://github.com/fago/typed_data.git modules/typed_data

  # Run composer install for Drupal 8.1 and up. We need an up-to-date composer
  # when installing Drupal 8.1.
  - travis_retry composer self-update && travis_retry composer install
  # Run composer install in the module directory in order to fetch dev
  # dependencies there. This includes phpcs & coder for checking coding style.
  - travis_retry composer install -d $TESTDIR 

  # Start a web server on port 8888, run in the background.
  - php -S localhost:8888 &

  # Export web server URL for browser tests.
  - export SIMPLETEST_BASE_URL=http://localhost:8888

script:
  # Run the PHPUnit tests which also include the kernel tests.
  - ./vendor/bin/phpunit -c ./core/phpunit.xml.dist ./modules/$MODULE/tests/
  # Check for coding standards.
  - cd modules/$MODULE && ./vendor/bin/phpcs --colors --report-width=130