-
Notifications
You must be signed in to change notification settings - Fork 3
/
.gitlab-ci.yml
142 lines (91 loc) · 2.45 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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
image: grifart/php8.1-with-all-modules-and-various-tools
# STAGES
stages:
- build
- test
# BUILDS
# composer
.build-composer-template: &build-composer-template
stage: build
artifacts:
expire_in: 2 hours
name: "${CI_BUILD_REF_NAME}_${CI_BUILD_NAME}"
paths:
- vendor
build.composer.dev:
<<: *build-composer-template
script:
- composer install --no-interaction --ansi
build.composer:
<<: *build-composer-template
script:
- composer install --no-dev --no-interaction --prefer-dist --optimize-autoloader --ansi
# TESTS
# php lint
test.php-syntax-check:
stage: test
script:
- composer require php-parallel-lint/php-parallel-lint
- vendor/bin/parallel-lint src
# php stan
test.phpstan:
stage: test
dependencies:
- build.composer.dev
script:
- composer run phpstan
# tests
.test.tests: &test-tests
stage: test
dependencies: []
needs: []
before_script:
- composer install --no-interaction --ansi
script:
- composer run test
artifacts:
expire_in: 15 minutes
paths:
- log
- src # can contain assertion diffs
when: on_failure
test.tests.php72:
<<: *test-tests
image: grifart/php7.2-with-gulp-and-all-php-modules
test.tests.php72.oldDeps:
<<: *test-tests
before_script:
- composer update --prefer-lowest --no-interaction --ansi
image: grifart/php7.2-with-gulp-and-all-php-modules
test.tests.php73:
<<: *test-tests
image: grifart/php7.3-with-gulp-and-all-php-modules
test.tests.php73.oldDeps:
<<: *test-tests
before_script:
- composer update --prefer-lowest --no-interaction --ansi
image: grifart/php7.3-with-gulp-and-all-php-modules
test.tests.php74:
<<: *test-tests
image: grifart/php7.4-with-gulp-and-all-php-modules
test.tests.php74.oldDeps:
<<: *test-tests
before_script:
- composer update --prefer-lowest --no-interaction --ansi
image: grifart/php7.4-with-gulp-and-all-php-modules
test.tests.php80:
<<: *test-tests
image: grifart/php8.0-with-all-modules-and-various-tools
test.tests.php80.oldDeps:
<<: *test-tests
before_script:
- composer update --prefer-lowest --no-interaction --ansi
image: grifart/php8.0-with-all-modules-and-various-tools
test.tests.php81:
<<: *test-tests
image: grifart/php8.1-with-all-modules-and-various-tools
test.tests.php81.oldDeps:
<<: *test-tests
before_script:
- composer update --prefer-lowest --no-interaction --ansi
image: grifart/php8.1-with-all-modules-and-various-tools