PHP Classes

File: .travis.yml

Recommend this page to a friend!
  Classes of Lars Moelleken  >  PHP Session MySQL Handler  >  .travis.yml  >  Download  
File: .travis.yml
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP Session MySQL Handler
Handler for storing session data in MySQL
Author: By
Last change: [+]: edit "Session2DB->use_lock_via_mysql(bool|null)"

-> you can now use "use_lock_via_mysql(null)" to use a mysql lock-table
Date: 7 months ago
Size: 1,300 bytes


Class file image Download
language: php

sudo: false

  - 7.0
  - 7.1
  - 7.2

  - wget
  - mysql -e 'CREATE DATABASE mysql_test;'
  - mysql -e 'USE mysql_test; CREATE TABLE session_data ( session_id varchar(128) NOT NULL default "", hash varchar(128) NOT NULL default "", session_data blob NOT NULL, session_expire int(11) NOT NULL default "0", PRIMARY KEY session_id (`session_id`), KEY hash (`hash`), KEY session_expire (`session_expire`), KEY select_helper_index (`session_id`, `hash`, `session_expire`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;'
  - mysql -e 'USE mysql_test; CREATE TABLE lock_data ( lock_hash varchar(128) NOT NULL, lock_time INT(11) UNSIGNED NOT NULL, PRIMARY KEY lock_hash (`lock_hash`), KEY lock_time (`lock_time`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;'
  - travis_retry composer self-update
  - travis_retry composer require satooshi/php-coveralls:1.0.0
  - travis_retry composer install --no-interaction --prefer-source
  - composer dump-autoload -o

  - mkdir -p build/logs
  - php vendor/bin/phpunit -c phpunit.xml

  - php vendor/bin/coveralls -v
  - php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
  - bash <(curl -s