-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.gitlab-ci.yml
127 lines (104 loc) · 2.42 KB
/
.gitlab-ci.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
stages:
- test
.code-linter: &code-linter
image: php:${PHP_VERSION}
stage: test
before_script:
- apt-get update && apt-get install -y --force-yes curl unzip ca-certificates
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
- rm composer.json
- composer require --dev php-parallel-lint/php-parallel-lint
script:
- vendor/bin/parallel-lint src/
code-linter-8.1:
<<: *code-linter
variables:
PHP_VERSION: "8.1"
code-linter-8.0:
<<: *code-linter
variables:
PHP_VERSION: "8.0"
code-linter-7.3:
<<: *code-linter
variables:
PHP_VERSION: "7.3"
code-linter-7.2:
<<: *code-linter
variables:
PHP_VERSION: "7.2"
code-linter-7.1:
<<: *code-linter
variables:
PHP_VERSION: "7.1"
code-linter-7.0:
<<: *code-linter
variables:
PHP_VERSION: "7.0"
code-linter-5.6:
<<: *code-linter
variables:
PHP_VERSION: "5.6"
code-linter-5.5:
<<: *code-linter
variables:
PHP_VERSION: "5.5"
.unit-tests: &unit-tests
image: php:${PHP_VERSION}
stage: test
before_script:
- apt-get update && apt-get install -y curl unzip ca-certificates
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
- composer install
script:
- vendor/bin/tester tests
unit-tests-8.1:
<<: *unit-tests
variables:
PHP_VERSION: "8.1"
unit-tests-8.0:
<<: *unit-tests
variables:
PHP_VERSION: "8.0"
unit-tests-7.3:
<<: *unit-tests
variables:
PHP_VERSION: "7.3"
unit-tests-7.2:
<<: *unit-tests
variables:
PHP_VERSION: "7.2"
unit-tests-7.1:
<<: *unit-tests
variables:
PHP_VERSION: "7.1"
unit-tests-7.0:
<<: *unit-tests
variables:
PHP_VERSION: "7.0"
unit-tests-5.6:
<<: *unit-tests
variables:
PHP_VERSION: "5.6"
.phpstan: &phpstan
image: php:8.1
stage: test
before_script:
- apt-get update && apt-get install -y curl unzip
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
- composer install
- composer require --dev phpstan/phpstan
- composer require --dev nette/di "${NETTE_DI_VERSION}"
script:
- vendor/bin/phpstan analyse
phpstan-nette-di-3.0:
<<: *phpstan
variables:
NETTE_DI_VERSION: "^3.0"
phpstan-nette-di-2.4:
<<: *phpstan
variables:
NETTE_DI_VERSION: "^2.4"
phpstan-nette-di-2.3:
<<: *phpstan
variables:
NETTE_DI_VERSION: "^2.3"