Merge branch 'feature/improve-ci' into 'develop'
Improve CI file See merge request !75
This commit is contained in:
commit
851e81d194
1 changed files with 9 additions and 25 deletions
|
@ -26,47 +26,36 @@ sync:github:
|
||||||
- cd mirror
|
- cd mirror
|
||||||
- git push --mirror ${MIRROR_GIT_URL}
|
- git push --mirror ${MIRROR_GIT_URL}
|
||||||
|
|
||||||
lint:coding-guideline:
|
lint:coding-guideline: &PHP-LINTING
|
||||||
image: php:7.0-alpine
|
image: php:7.0-alpine
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- ./vendor/bin/phpcs -s -n
|
- ./vendor/bin/phpcs -s -n --report-full=result/phpcs-full.txt --report-diff=result/phpcs-diff.txt --report-summary=result/phpcs-summary.txt
|
||||||
- ./vendor/bin/phpcs -s -n > result/phpcs-summary.txt
|
|
||||||
artifacts:
|
artifacts:
|
||||||
when: on_failure
|
when: on_failure
|
||||||
paths:
|
paths:
|
||||||
- result
|
- result
|
||||||
|
|
||||||
lint:php-mass-detection:
|
lint:php-mass-detection:
|
||||||
image: php:7.0-alpine
|
<<: *PHP-LINTING
|
||||||
stage: test
|
|
||||||
script:
|
script:
|
||||||
- ./vendor/bin/phpmd src text phpmd.xml > result/phpmd.txt
|
- ./vendor/bin/phpmd src text phpmd.xml > result/phpmd.txt
|
||||||
- ./vendor/bin/phpmd src html phpmd.xml > result/phpmd.html
|
|
||||||
artifacts:
|
|
||||||
when: on_failure
|
|
||||||
paths:
|
|
||||||
- result
|
|
||||||
|
|
||||||
test:5.6:
|
test:5.6: &PHP-UNITTESTING
|
||||||
image: php:5.6-alpine
|
image: php:5.6-alpine
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- ./vendor/bin/phpunit
|
- ./vendor/bin/phpunit
|
||||||
|
|
||||||
test:7.0:
|
test:7.0:
|
||||||
|
<<: *PHP-UNITTESTING
|
||||||
image: php:7.0-alpine
|
image: php:7.0-alpine
|
||||||
stage: test
|
|
||||||
script:
|
|
||||||
- ./vendor/bin/phpunit
|
|
||||||
|
|
||||||
test:latest:
|
test:latest:
|
||||||
|
<<: *PHP-UNITTESTING
|
||||||
image: php:7-alpine
|
image: php:7-alpine
|
||||||
stage: test
|
|
||||||
script:
|
|
||||||
- ./vendor/bin/phpunit
|
|
||||||
|
|
||||||
test:documentation:syntax:
|
test:documentation:syntax: &SPHINX-DOCS
|
||||||
image: 'danielsiepmann/sphinx:latest'
|
image: 'danielsiepmann/sphinx:latest'
|
||||||
stage: test
|
stage: test
|
||||||
before_script:
|
before_script:
|
||||||
|
@ -75,18 +64,13 @@ test:documentation:syntax:
|
||||||
- make dummy
|
- make dummy
|
||||||
|
|
||||||
test:documentation:external-links:
|
test:documentation:external-links:
|
||||||
image: 'danielsiepmann/sphinx:latest'
|
<<: *SPHINX-DOCS
|
||||||
stage: test
|
|
||||||
before_script:
|
|
||||||
- cd Documentation
|
|
||||||
script:
|
script:
|
||||||
- make linkcheck
|
- make linkcheck
|
||||||
|
|
||||||
render:documentation:
|
render:documentation:
|
||||||
image: 'danielsiepmann/sphinx:latest'
|
<<: *SPHINX-DOCS
|
||||||
stage: render
|
stage: render
|
||||||
before_script:
|
|
||||||
- cd Documentation
|
|
||||||
script:
|
script:
|
||||||
- make html
|
- make html
|
||||||
artifacts:
|
artifacts:
|
||||||
|
|
Loading…
Reference in a new issue