-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
85 lines (78 loc) · 1.98 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
stages:
- test
- deploy
test 7.1 lowest:
image: registry.gitlab.com/anezi/php-dev:7.1
stage: test
script:
- ./tests.sh composer_update_prefer_lowest
- ./tests.sh phpunit
- ./tests.sh phpmd
artifacts:
paths:
- phpmd.html
cache:
key: "$CI_JOB_NAME"
untracked: true
test 7.1 latest:
image: registry.gitlab.com/anezi/php-dev:7.1
stage: test
script:
- ./tests.sh composer_update_prefer_latest
- ./tests.sh phpunit_with_coverage
artifacts:
paths:
- coverage
cache:
key: "$CI_JOB_NAME"
untracked: true
test 7.2 lowest:
image: registry.gitlab.com/anezi/php-dev:7.2
stage: test
script:
- ./tests.sh composer_update_prefer_lowest
- ./tests.sh phpunit
cache:
key: "$CI_JOB_NAME"
untracked: true
test 7.2 latest:
image: registry.gitlab.com/anezi/php-dev:7.2
stage: test
script:
- ./tests.sh composer_update_prefer_latest
- ./tests.sh phpunit
cache:
key: "$CI_JOB_NAME"
untracked: true
test 7.3 lowest:
image: registry.gitlab.com/anezi/php-dev:7.3
stage: test
script:
- ./tests.sh composer_update_prefer_lowest
- ./tests.sh phpunit
cache:
key: "$CI_JOB_NAME"
untracked: true
test 7.3 latest:
image: registry.gitlab.com/anezi/php-dev:7.3
stage: test
script:
- ./tests.sh composer_update_prefer_latest
- ./tests.sh phpunit
cache:
key: "$CI_JOB_NAME"
untracked: true
pages:
image: alpine:latest
stage: deploy
script:
- mkdir public
- mv coverage public/
- echo "Visit https://anezi.gitlab.io/email-validator/coverage/ to verify the results."
- mv phpmd.html public/
- echo "Visit https://anezi.gitlab.io/email-validator/phpmd.html to verify the results."
artifacts:
paths:
- public
only:
- master