forked from bdewong/Zebra_Session
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.travis.yml
60 lines (51 loc) · 2.03 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
language: php
# Temporarily use legacy infrastructure until Travis resolves MySQL issues with their containerized infrastructure.
# @see https://github.com/travis-ci/travis-ci/issues/6842
sudo: required
git:
depth: 2
cache:
directories:
- $HOME/.composer/cache
matrix:
fast_finish: true
include:
- php: 7.0
env: DB=mariadb
addons:
mariadb: 10.2
- php: 7.1
env: DB=mariadb
addons:
mariadb: 10.2
- php: 7.2
env: DB=mariadb
addons:
mariadb: 10.3
- php: 7.3
env: DB=mariadb
addons:
mariadb: 10.3
- php: 7.4
env: DB=mariadb
addons:
mariadb: 10.3
services:
- mysql
before_script:
- php --version
- travis_retry wget https://scrutinizer-ci.com/ocular.phar
- travis_retry mysql -u root -h 127.0.0.1 -e 'CREATE DATABASE mysql_test;'
- travis_retry mysql -u root -h 127.0.0.1 -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;'
- travis_retry mysql -u root -h 127.0.0.1 -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
script:
- mkdir -p build/logs
- php vendor/bin/phpunit -c phpunit.xml
after_script:
- php vendor/bin/coveralls -v
- php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
- bash <(curl -s https://codecov.io/bash)