You've already forked Php-Template
tests
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
include:
|
include:
|
||||||
- local: .gitlab/ci/stages.yml
|
- local: .gitlab/ci/stages.yml
|
||||||
- local: .gitlab/ci/tests.yml
|
- local: .gitlab/ci/tests.yml
|
||||||
|
- local: .gitlab/ci/libraries.yml
|
||||||
|
|
||||||
|
|||||||
15
.gitlab/ci/libraries.yml
Normal file
15
.gitlab/ci/libraries.yml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
Install Composer Libraries:
|
||||||
|
stage: libraries
|
||||||
|
image: siteworxpro/composer:latest
|
||||||
|
rules:
|
||||||
|
- if: '$CI_COMMIT_TAG'
|
||||||
|
when: never
|
||||||
|
- if: '$CI_PIPELINE_SOURCE == "push"'
|
||||||
|
when: always
|
||||||
|
- when: never
|
||||||
|
script:
|
||||||
|
- composer install --ignore-platform-reqs
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- vendor/
|
||||||
|
expire_in: 1 hour
|
||||||
@@ -1,2 +1,3 @@
|
|||||||
stages:
|
stages:
|
||||||
|
- libraries
|
||||||
- tests
|
- tests
|
||||||
@@ -1,18 +1,20 @@
|
|||||||
Unit Tests:
|
Unit Tests:
|
||||||
|
stage: tests
|
||||||
|
needs:
|
||||||
|
- Install Composer Libraries
|
||||||
rules:
|
rules:
|
||||||
- if: '$CI_COMMIT_TAG'
|
- if: '$CI_COMMIT_TAG'
|
||||||
when: never
|
when: never
|
||||||
- if: '$CI_PIPELINE_SOURCE == "push"'
|
- if: '$CI_PIPELINE_SOURCE == "push"'
|
||||||
when: always
|
when: always
|
||||||
- when: never
|
- when: never
|
||||||
stage: test
|
|
||||||
image: siteworxpro/composer
|
image: siteworxpro/composer
|
||||||
script:
|
script:
|
||||||
- echo "Running unit tests..."
|
- echo "Running unit tests..."
|
||||||
- composer run tests:unit
|
- composer run tests:unit
|
||||||
|
|
||||||
Run License Check:
|
Run License Check:
|
||||||
stage: test
|
stage: tests
|
||||||
needs:
|
needs:
|
||||||
- Install Composer Libraries
|
- Install Composer Libraries
|
||||||
rules:
|
rules:
|
||||||
@@ -26,7 +28,7 @@ Run License Check:
|
|||||||
- composer run tests:license
|
- composer run tests:license
|
||||||
|
|
||||||
Run Code Lint:
|
Run Code Lint:
|
||||||
stage: test
|
stage: tests
|
||||||
needs:
|
needs:
|
||||||
- Install Composer Libraries
|
- Install Composer Libraries
|
||||||
rules:
|
rules:
|
||||||
|
|||||||
Reference in New Issue
Block a user