Skip to content
Snippets Groups Projects
Forked from project / varbase
732 commits behind the upstream repository.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
.travis.yml 4.80 KiB
dist: trusty

language: php
cache:
  bundler: true
  directories:
    - "$HOME/.composer/cache"
    - "$HOME/.drush/cache"
    - "$HOME/.npm"
    - "$HOME/.selenium/cache"

php:
  - 7.2

env:
  - AFATG=01-website-base-requirements
  - AFATG=02-user-management
  - AFATG=03-admin-management
  - AFATG=04-content-structure
  - AFATG=05-content-management

matrix:
  exclude:
# Automated Functional Acceptance Testing group: 01 website base requirements
  - php: 7.2
    env: AFATG=01-website-base-requirements

# Automated Functional Acceptance Testing group: 02 user management
  - php: 7.2
    env: AFATG=02-user-management

# Automated Functional Acceptance Testing group: 03 admin management
  - php: 7.2
    env: AFATG=03-admin-management

# Automated Functional Acceptance Testing group: 04 content structure
  - php: 7.2
    env: AFATG=04-content-structure

# Automated Functional Acceptance Testing group: 05 content-management
  - php: 7.2
    env: AFATG=05-content-management

mysql:
  database: test_varbase6c
  username: root
  encoding: utf8

before_install:
  - phpenv config-rm xdebug.ini
  - phpenv rehash
  - composer self-update
  - composer --version

  # Composer Configurations.
  - export PATH="$HOME/.composer/vendor/bin:$TRAVIS_BUILD_DIR/bin:$PATH"
  - export COMPOSER_EXIT_ON_PATCH_FAILURE=1

  # MySQL Configurations.
  - mysql -e 'SET GLOBAL wait_timeout = 5400;'
  - mysql -e "SHOW VARIABLES LIKE 'wait_timeout'"

  # PHP Configurations.
  - echo 'max_execution_time = 1200' >> varbase.php.ini;
  - echo 'max_input_time = 180' >> varbase.php.ini;
  - echo 'max_input_vars = 10000' >> varbase.php.ini;
  - echo 'memory_limit = 3000M' >> varbase.php.ini;
  - echo 'error_reporting = E_ALL' >> varbase.php.ini;
  - echo 'post_max_size = 64M' >> varbase.php.ini;
  - echo 'upload_max_filesize = 32M' >> varbase.php.ini;