-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
.travis.yml
46 lines (35 loc) · 849 Bytes
/
.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
language: php
branches:
only:
- master
php:
- 7.2
- 7.3
- 7.4
env:
matrix:
- DEFAULT=1 DATABASE_TEST_URL='mysql://ishan:[email protected]/test_cakevue_spa'
services:
- mysql
cache:
directories:
- vendor
- $HOME/.composer/cache
matrix:
fast_finish: true
include:
- php: 7.2
env: PHPCS=1 DEFAULT=0
- php: 7.2
env: PHPSTAN=1 DEFAULT=0
before_install:
- phpenv config-rm xdebug.ini
install:
- mysql -u root -e "CREATE DATABASE test_cakevue_spa; CREATE USER 'ishan'@'localhost' IDENTIFIED BY 'vyas'; GRANT ALL ON test_cakevue_spa.* TO 'ishan'@'localhost';"
- composer install --no-interaction
script:
- if [[ $DEFAULT = 1 ]]; then composer test; fi
- if [[ $PHPCS = 1 ]]; then composer cs-check; fi
- if [[ $PHPSTAN = 1 ]]; then composer analyse; fi
notifications:
email: false