You've already forked Traefik-Redis-Api
done. going to bed now.
This commit is contained in:
62
.gitlab/ci/tests.yml
Normal file
62
.gitlab/ci/tests.yml
Normal file
@@ -0,0 +1,62 @@
|
||||
Unit Tests:
|
||||
stage: tests
|
||||
needs:
|
||||
- Install Composer Libraries
|
||||
rules:
|
||||
- if: '$CI_COMMIT_TAG'
|
||||
when: never
|
||||
- if: '$CI_PIPELINE_SOURCE == "push"'
|
||||
when: always
|
||||
- when: never
|
||||
image: siteworxpro/composer
|
||||
before_script: |
|
||||
bin/pcov.sh
|
||||
script: |
|
||||
echo "Running unit tests..."
|
||||
composer run tests:unit:coverage
|
||||
artifacts:
|
||||
expire_in: 1 day
|
||||
paths:
|
||||
- tests/reports/
|
||||
|
||||
Run License Check:
|
||||
stage: tests
|
||||
needs:
|
||||
- Install Composer Libraries
|
||||
rules:
|
||||
- if: '$CI_COMMIT_TAG'
|
||||
when: never
|
||||
- if: '$CI_PIPELINE_SOURCE == "push"'
|
||||
when: on_success
|
||||
- when: never
|
||||
image: siteworxpro/composer
|
||||
script:
|
||||
- composer run tests:license
|
||||
|
||||
Run Code Lint:
|
||||
stage: tests
|
||||
needs:
|
||||
- Install Composer Libraries
|
||||
rules:
|
||||
- if: '$CI_COMMIT_TAG'
|
||||
when: never
|
||||
- if: '$CI_PIPELINE_SOURCE == "push"'
|
||||
when: on_success
|
||||
- when: never
|
||||
image: siteworxpro/composer
|
||||
script:
|
||||
- composer run tests:lint
|
||||
|
||||
Run Code Sniffer:
|
||||
stage: tests
|
||||
needs:
|
||||
- Install Composer Libraries
|
||||
rules:
|
||||
- if: '$CI_COMMIT_TAG'
|
||||
when: never
|
||||
- if: '$CI_PIPELINE_SOURCE == "push"'
|
||||
when: on_success
|
||||
- when: never
|
||||
image: siteworxpro/composer
|
||||
script:
|
||||
- composer run tests:phpstan
|
||||
Reference in New Issue
Block a user