-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
160 lines (153 loc) · 4.09 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
language: php
sudo: false
matrix:
fast_finish: true
include:
- php: 7.1
dist: trusty
sudo: true
env:
- DEPENDENCIES=""
- DRIVER="pdo_mysql"
- DB=mariadb_10.2
addons:
mariadb: '10.2'
- php: 7.1
dist: trusty
sudo: true
env:
- DEPENDENCIES="--prefer-lowest --prefer-stable"
- DRIVER="pdo_mysql"
- DB=mariadb_10.2
addons:
mariadb: '10.2'
- php: 7.1
dist: trusty
sudo: true
env:
- DEPENDENCIES=""
- DRIVER="pdo_mysql"
- DB=mariadb_10.2
- DB_ATTR_ERRMODE=2 # \PDO::ERRMODE_EXCEPTION
addons:
mariadb: '10.2'
- php: 7.1
sudo: true
env:
- DEPENDENCIES=""
- DRIVER="pdo_mysql"
- DB=mysql_5.7
- php: 7.1
sudo: true
env:
- DEPENDENCIES="--prefer-lowest --prefer-stable"
- DRIVER="pdo_mysql"
- DB=mysql_5.7
- php: 7.1
sudo: true
env:
- DEPENDENCIES=""
- DRIVER="pdo_mysql"
- DB=mysql_5.7
- DB_ATTR_ERRMODE=2 # \PDO::ERRMODE_EXCEPTION
- php: 7.1
env:
- DEPENDENCIES=""
- DRIVER="pdo_pgsql"
- DB=postgres_9.4
addons:
postgresql: '9.4'
- php: 7.1
env:
- DEPENDENCIES="--prefer-lowest --prefer-stable"
- DRIVER="pdo_pgsql"
- DB=postgres_9.4
addons:
postgresql: '9.4'
- php: 7.1
env:
- DEPENDENCIES=""
- DRIVER="pdo_pgsql"
- DB=postgres_9.4
- DB_ATTR_ERRMODE=2 # \PDO::ERRMODE_EXCEPTION
addons:
postgresql: '9.4'
- php: 7.1
dist: trusty
env:
- DEPENDENCIES=""
- DRIVER="pdo_pgsql"
- DB=postgres_9.5
addons:
postgresql: '9.5'
- php: 7.1
dist: trusty
env:
- DEPENDENCIES="--prefer-lowest --prefer-stable"
- DRIVER="pdo_pgsql"
- DB=postgres_9.5
addons:
postgresql: '9.5'
- php: 7.1
dist: trusty
env:
- DEPENDENCIES=""
- DRIVER="pdo_pgsql"
- DB=postgres_9.5
- DB_ATTR_ERRMODE=2 # \PDO::ERRMODE_EXCEPTION
addons:
postgresql: '9.5'
- php: 7.1
dist: trusty
env:
- DEPENDENCIES=""
- EXECUTE_CS_CHECK=true
- TEST_COVERAGE=true
- DRIVER="pdo_pgsql"
- DB=postgres_9.6
addons:
postgresql: '9.6'
- php: 7.1
dist: trusty
env:
- DEPENDENCIES="--prefer-lowest --prefer-stable"
- DRIVER="pdo_pgsql"
- DB=postgres_9.6
addons:
postgresql: '9.6'
- php: 7.1
dist: trusty
env:
- DEPENDENCIES=""
- DRIVER="pdo_pgsql"
- DB=postgres_9.6
- DB_ATTR_ERRMODE=2 # \PDO::ERRMODE_EXCEPTION
addons:
postgresql: '9.6'
cache:
directories:
- $HOME/.composer/cache
- $HOME/.php-cs-fixer
- $HOME/.local
before_script:
- mkdir -p "$HOME/.php-cs-fixer"
- phpenv config-rm xdebug.ini
- VENDOR=$(echo $DB | cut -d'_' -f 1)
- if [[ $DB == 'mysql_5.7' ]]; then bash .travis.install-mysql-5.7.sh; fi
- if [[ $DRIVER == 'pdo_mysql' ]]; then mysql -e 'create database event_store_tests;'; fi
- if [[ $DRIVER == 'pdo_pgsql' ]]; then psql -c 'create database event_store_tests;' -U postgres; fi
- composer self-update
- composer update $DEPENDENCIES
script:
- cp phpunit.xml.$VENDOR phpunit.xml
- if [[ $TEST_COVERAGE == 'true' ]]; then php -dzend_extension=xdebug.so ./vendor/bin/phpunit --coverage-text --coverage-clover ./build/logs/clover.xml; else ./vendor/bin/phpunit; fi
- if [[ $EXECUTE_CS_CHECK == 'true' ]]; then ./vendor/bin/php-cs-fixer fix -v --diff --dry-run; fi
after_success:
- if [[ $TEST_COVERAGE == 'true' ]]; then php vendor/bin/coveralls -v; fi
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/61c75218816eebde4486
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: never # options: [always|never|change] default: always