Skip to content

Commit 5ec7454

Browse files
committed
feat: add GitLab CI configuration for test stage
1 parent 9a4ea95 commit 5ec7454

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.gitlab-ci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
stages:
22
- build
3+
- test
34

45
variables:
56
GIT_STRATEGY: none
@@ -14,3 +15,15 @@ build:
1415
- cd $BLOG_RUNNER_PATH
1516
- ./runner.sh sync api_package
1617
- ./runner.sh build_admin install
18+
19+
analyse:
20+
stage: test
21+
tags:
22+
- csl-176
23+
script:
24+
- cd $HOME_PATH
25+
- composer install --prefer-dist --no-progress --no-suggest
26+
# - find . -type f -name '*.php' -not -path './vendor/*' -not -path './storage/*' -exec php -l {} \;
27+
- composer a
28+
rules:
29+
- if: $CI_PIPELINE_SOURCE == 'push' || $CI_PIPELINE_SOURCE == 'merge_request_event'

0 commit comments

Comments
 (0)