2017-04-08 22:49:00 +02:00
|
|
|
before_script:
|
2017-04-08 23:32:11 +02:00
|
|
|
- apk add --no-cache make wget git
|
2017-04-08 23:23:09 +02:00
|
|
|
- make install-composer
|
2017-04-08 23:07:26 +02:00
|
|
|
- make install
|
2017-04-09 00:10:22 +02:00
|
|
|
- mkdir -p result
|
2017-04-08 22:49:00 +02:00
|
|
|
|
|
|
|
stages:
|
2017-04-11 15:49:01 +02:00
|
|
|
- sync
|
2017-04-08 22:49:00 +02:00
|
|
|
- test
|
2017-04-13 08:46:17 +02:00
|
|
|
- render
|
2017-04-08 22:49:00 +02:00
|
|
|
|
2017-04-11 15:49:01 +02:00
|
|
|
sync:github:
|
2017-04-13 09:07:54 +02:00
|
|
|
image: 'bash:latest'
|
2017-04-11 15:49:01 +02:00
|
|
|
stage: sync
|
|
|
|
before_script:
|
2017-04-11 18:23:09 +02:00
|
|
|
- apk add --no-cache openssh-client git
|
2017-04-11 15:49:01 +02:00
|
|
|
# SSH deploy key
|
|
|
|
- eval $(ssh-agent -s)
|
2017-04-11 20:56:30 +02:00
|
|
|
- echo "$SSH_PRIVATE_KEY" > /tmp/private_key
|
|
|
|
- chmod go-rwx /tmp/private_key; chmod u-x /tmp/private_key
|
|
|
|
- ssh-add /tmp/private_key
|
2017-04-11 15:49:01 +02:00
|
|
|
- mkdir -p ~/.ssh
|
|
|
|
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
|
|
|
|
script:
|
2017-04-11 15:54:18 +02:00
|
|
|
- git clone --mirror ${CI_REPOSITORY_URL} mirror
|
|
|
|
- cd mirror
|
|
|
|
- git push --mirror ${MIRROR_GIT_URL}
|
2017-04-11 15:49:01 +02:00
|
|
|
|
2017-04-13 16:13:16 +02:00
|
|
|
lint:coding-guideline: &PHP-LINTING
|
2017-04-27 12:53:07 +02:00
|
|
|
image: php:7.1-alpine
|
2017-04-09 00:10:22 +02:00
|
|
|
stage: test
|
|
|
|
script:
|
2017-04-13 16:11:04 +02:00
|
|
|
- ./vendor/bin/phpcs -s -n --report-full=result/phpcs-full.txt --report-diff=result/phpcs-diff.txt --report-summary=result/phpcs-summary.txt
|
2017-04-09 00:10:22 +02:00
|
|
|
artifacts:
|
|
|
|
when: on_failure
|
|
|
|
paths:
|
|
|
|
- result
|
|
|
|
|
|
|
|
lint:php-mass-detection:
|
2017-04-13 16:13:16 +02:00
|
|
|
<<: *PHP-LINTING
|
2017-04-09 00:10:22 +02:00
|
|
|
script:
|
|
|
|
- ./vendor/bin/phpmd src text phpmd.xml > result/phpmd.txt
|
|
|
|
|
2017-04-27 14:16:22 +02:00
|
|
|
test:5.6: &PHP-UNITTESTING
|
|
|
|
image: php:5.6-alpine
|
2017-04-08 23:23:09 +02:00
|
|
|
stage: test
|
|
|
|
script:
|
|
|
|
- ./vendor/bin/phpunit
|
|
|
|
|
2017-04-27 14:16:22 +02:00
|
|
|
test:7.0:
|
|
|
|
<<: *PHP-UNITTESTING
|
|
|
|
image: php:7.0-alpine
|
|
|
|
|
|
|
|
test:7.1:
|
|
|
|
<<: *PHP-UNITTESTING
|
|
|
|
image: php:7.1-alpine
|
|
|
|
|
2017-04-09 00:10:22 +02:00
|
|
|
test:latest:
|
2017-04-13 16:13:16 +02:00
|
|
|
<<: *PHP-UNITTESTING
|
2017-04-09 00:10:22 +02:00
|
|
|
image: php:7-alpine
|
|
|
|
|
2017-05-04 08:38:02 +02:00
|
|
|
test:doc:syntax: &SPHINX-DOCS
|
2017-04-13 09:16:46 +02:00
|
|
|
image: 'danielsiepmann/sphinx:latest'
|
|
|
|
stage: test
|
|
|
|
before_script:
|
|
|
|
- cd Documentation
|
|
|
|
script:
|
|
|
|
- make dummy
|
|
|
|
|
2017-05-04 08:38:02 +02:00
|
|
|
test:doc:external-links:
|
2017-04-13 16:13:16 +02:00
|
|
|
<<: *SPHINX-DOCS
|
2017-04-13 09:16:46 +02:00
|
|
|
script:
|
|
|
|
- make linkcheck
|
|
|
|
|
2017-05-04 08:38:02 +02:00
|
|
|
render:doc:
|
2017-04-13 16:13:16 +02:00
|
|
|
<<: *SPHINX-DOCS
|
2017-04-13 08:46:17 +02:00
|
|
|
stage: render
|
|
|
|
script:
|
|
|
|
- make html
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- Documentation/build/html
|