-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
54 lines (44 loc) · 986 Bytes
/
.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
image: nexendrie/php:7.4
stages:
- test
- deploy
cache:
paths:
- vendor/
before_script:
- composer update --prefer-dist --no-progress --no-suggest --no-interaction
.job_template: &test_job
stage: test
script:
- phing test
test:default:
<<: *test_job
test:default:lowest-deps:
<<: *test_job
before_script:
- composer update --prefer-lowest --prefer-dist --no-progress --no-suggest --no-interaction
test:php8.0:
<<: *test_job
image: nexendrie/php:8.0
test:php8.0:lowest-deps:
<<: *test_job
image: nexendrie/php:8.0
before_script:
- composer update --prefer-lowest --prefer-dist --no-progress --no-suggest --no-interaction
test:cc:
<<: *test_job
script:
- phing test-coverage
coverage: '/(\d+\%) covered/'
pages:
stage: deploy
environment:
name: documentation
url: https://heroesofabenez.gitlab.io/combat
script:
- phing documentation
artifacts:
paths:
- public
only:
- tags@heroesofabenez/combat