-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
43 lines (35 loc) · 1.17 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
phpstan:
image: hyperf/hyperf:8.1-alpine-v3.15-swoole-v4.8
stage: test
script:
- composer config -g repo.packagist composer http://mirrors.tencentyun.com/composer/
- composer install
- composer run analyse
unit:
image: hyperf/hyperf:8.1-alpine-v3.15-swoole-v4.8
stage: test
script:
- composer config -g repo.packagist composer http://mirrors.tencentyun.com/composer/
- composer install
- composer run test
cs:
image: hyperf/hyperf:8.1-alpine-v3.15-swoole-v4.8
stage: test
script:
- composer config -g repo.packagist composer http://mirrors.tencentyun.com/composer/
- composer install
- composer run test-cs
deploy:
image: curlimages/curl
stage: deploy
only:
- tags
script:
- 'curl --header "Job-Token: $CI_JOB_TOKEN" --data tag=${CI_COMMIT_REF_NAME} "${CI_API_V4_URL}/projects/$CI_PROJECT_ID/packages/composer"'
deploy_branch:
image: curlimages/curl
stage: deploy
only:
- branches
script:
- 'curl --header "Job-Token: $CI_JOB_TOKEN" --data branch=master "${CI_API_V4_URL}/projects/$CI_PROJECT_ID/packages/composer"'