tests
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
include:
|
||||
- local: .gitlab/ci/stages.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:
|
||||
- libraries
|
||||
- tests
|
@@ -1,18 +1,20 @@
|
||||
Unit Tests:
|
||||
stage: tests
|
||||
needs:
|
||||
- Install Composer Libraries
|
||||
rules:
|
||||
- if: '$CI_COMMIT_TAG'
|
||||
when: never
|
||||
- if: '$CI_PIPELINE_SOURCE == "push"'
|
||||
when: always
|
||||
- when: never
|
||||
stage: test
|
||||
image: siteworxpro/composer
|
||||
script:
|
||||
- echo "Running unit tests..."
|
||||
- composer run tests:unit
|
||||
|
||||
Run License Check:
|
||||
stage: test
|
||||
stage: tests
|
||||
needs:
|
||||
- Install Composer Libraries
|
||||
rules:
|
||||
@@ -26,7 +28,7 @@ Run License Check:
|
||||
- composer run tests:license
|
||||
|
||||
Run Code Lint:
|
||||
stage: test
|
||||
stage: tests
|
||||
needs:
|
||||
- Install Composer Libraries
|
||||
rules:
|
||||
|
Reference in New Issue
Block a user