forked from redaxo/redaxo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
43 lines (35 loc) · 1.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
language: php
php:
- 5.5
- 5.6
- 7.0
- 7.1
matrix:
fast_finish: true
include:
- php: 7.0
env: DB=mariadb
addons:
mariadb: 10.1
- php: 7.1
env: DB=mariadb
addons:
mariadb: 10.2
sudo: false
notifications:
email: false
cache:
directories:
- $HOME/.php-cs-fixer
- $HOME/.composer/cache
install:
- mysql -e 'create database redaxo_5_0;'
- php redaxo/src/addons/tests/bin/setup.php
- mkdir -p "$HOME/.php-cs-fixer"
- "echo '{\"require\": {\"friendsofphp/php-cs-fixer\": \"^2.0\"}}' > \"$HOME/.php-cs-fixer/composer.json\""
- travis_retry composer update --no-interaction --working-dir "$HOME/.php-cs-fixer"
before_script:
- if find . -name "*.php" ! -path "*/vendor/*" -exec php -l {} 2>&1 \; | grep "syntax error, unexpected"; then exit 1; fi
script:
- php redaxo/src/addons/tests/bin/run_tests.php
- php "$HOME/.php-cs-fixer/vendor/bin/php-cs-fixer" fix --cache-file "$HOME/.php-cs-fixer/.php_cs.cache" --dry-run --diff --verbose