forked from redaxo/redaxo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
99 lines (91 loc) · 3.27 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
language: php
dist: bionic
git:
depth: 3
branches:
only:
- master
- bugfix
- temp
cache:
directories:
- $HOME/.composer/cache
before_install:
- phpenv config-rm xdebug.ini || echo "xdebug not available"
jobs:
include:
- php: 7.1
env: TYPE=linting
services:
- mysql
install:
- mysql -e 'create database redaxo_5_0;'
- php redaxo/src/addons/tests/bin/setup.php
script:
- composer require --dev friendsofredaxo/linter
- vendor/bin/rexlint
- php redaxo/bin/console be_style:compile
- git diff HEAD --exit-code # check if compiling the scss lead to uncommitted changes
- php: 7.3
env: TYPE=phpstan
services:
- mysql
script:
- mysql -e 'create database redaxo_5_0;'
- php redaxo/src/addons/tests/bin/setup.php
- php redaxo/bin/console package:install phpmailer
- php redaxo/bin/console package:install cronjob
- php redaxo/bin/console package:install cronjob/article_status
- php redaxo/bin/console package:install cronjob/optimize_tables
- php redaxo/bin/console package:install debug
- php redaxo/bin/console package:install structure/history
- php redaxo/bin/console package:install structure/version
- composer require --dev phpstan/phpstan-shim
- vendor/bin/phpstan analyse
- php: 7.3
env: TYPE=psalm
services:
- mysql
script:
- mysql -e 'create database redaxo_5_0;'
- php redaxo/src/addons/tests/bin/setup.php
- php redaxo/bin/console package:install phpmailer
- php redaxo/bin/console package:install cronjob
- php redaxo/bin/console package:install cronjob/article_status
- php redaxo/bin/console package:install cronjob/optimize_tables
- php redaxo/bin/console package:install debug
- php redaxo/bin/console package:install structure/history
- php redaxo/bin/console package:install structure/version
- composer require --dev vimeo/psalm:^3.4.12
- vendor/bin/psalm --show-info=false
- &TEST
install:
- mysql -e 'create database redaxo_5_0;'
- php redaxo/src/addons/tests/bin/setup.php
script: php redaxo/src/addons/tests/bin/run_tests.php
php: 7.1
env:
- TYPE=phpunit
- DB=mariadb
addons:
mariadb: 10.1
- <<: *TEST
php: 7.3
addons:
mariadb: 10.2
- &TEST_MYSQL
<<: *TEST
php: 7.1
env:
- TYPE=phpunit
- DB=mysql
services:
- mysql
addons: ~
- <<: *TEST_MYSQL
php: 7.2
- <<: *TEST_MYSQL
php: 7.3
- <<: *TEST_MYSQL
php: 7.4snapshot
dist: xenial