forked from amphp/mysql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
100 lines (89 loc) · 2.05 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
sudo: false
language: php
services:
- mysql
php:
- 7.0
- 7.1
- 7.2
- 7.3
- 7.4snapshot
- nightly
jobs:
include:
- stage: test
addons:
mariadb: 10.1
php: '7.0'
- addons:
mariadb: 10.2
php: '7.0'
- addons:
mariadb: 10.3
php: '7.0'
- addons:
mariadb: 10.1
php: '7.1'
- addons:
mariadb: 10.2
php: '7.1'
- addons:
mariadb: 10.3
php: '7.1'
- addons:
mariadb: 10.1
php: '7.2'
- addons:
mariadb: 10.2
php: '7.2'
- addons:
mariadb: 10.3
php: '7.2'
- addons:
mariadb: 10.1
php: '7.3'
- addons:
mariadb: 10.2
php: '7.3'
- addons:
mariadb: 10.3
php: '7.3'
- addons:
mariadb: 10.3
php: '7.4snapshot'
- addons:
mariadb: 10.3
php: 'nightly'
- stage: benchmark
php: '7.3'
env:
- AMP_DEBUG=false
script:
- PATH=$PATH:$(pwd)/benchmarks/bin vendor/bin/phpbench run --report=aggregate
matrix:
allow_failures:
- php: 7.4snapshot
- php: nightly
- addons:
mariadb: 10.3
fast_finish: true
env:
- AMP_DEBUG=true
install:
- composer update -n --prefer-dist
- wget https://github.com/php-coveralls/php-coveralls/releases/download/v1.0.2/coveralls.phar
- chmod +x coveralls.phar
- mysqld --version
before_script:
- echo '<?php $autoloader = require(__DIR__."/../vendor/autoload.php"); const DB_HOST = "localhost"; const DB_USER = "root"; const DB_PASS = "";' > test/bootstrap.php
- mysql -u root -e "SELECT VERSION(); CREATE DATABASE test; CREATE TABLE test.main (a INT(11), b INT(11)); INSERT INTO test.main VALUES (1, 2), (2, 3), (3, 4), (4, 5), (5, 6);"
script:
- vendor/bin/phpunit --coverage-text --coverage-clover build/logs/clover.xml
- PHP_CS_FIXER_IGNORE_ENV=1 php vendor/bin/php-cs-fixer --diff --dry-run -v fix
after_script:
- ./coveralls.phar
cache:
directories:
- $HOME/.composer/cache
- $HOME/.php-cs-fixer
- $HOME/.local