automated-typo3-update/.gitlab-ci.yml

66 lines
1.3 KiB
YAML
Raw Normal View History

before_script:
- apk add --no-cache make wget git
- make install-composer
- make install
2017-04-09 00:10:22 +02:00
- mkdir -p result
stages:
- sync
- test
sync:github:
stage: sync
before_script:
- apt-get -y update && apt-get -y upgrade
- apt-get -y install openssh-client rsync
# SSH deploy key
- eval $(ssh-agent -s)
- ssh-add <(echo "$SSH_PRIVATE_KEY")
- mkdir -p ~/.ssh
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
script:
- git push github
2017-04-09 00:10:22 +02:00
lint:coding-guideline:
image: php:7.0-alpine
stage: test
script:
- ./vendor/bin/phpcs -s -n
- ./vendor/bin/phpcs -s -n > result/phpcs-summary.txt
2017-04-09 00:10:22 +02:00
artifacts:
when: on_failure
paths:
- result
lint:php-mass-detection:
image: php:7.0-alpine
stage: test
script:
- ./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:
image: php:5.6-alpine
stage: test
script:
- ./vendor/bin/phpunit
test:7.0:
image: php:7.0-alpine
stage: test
script:
- ./vendor/bin/phpunit
2017-04-09 00:10:22 +02:00
test:latest:
image: php:7-alpine
stage: test
script:
- ./vendor/bin/phpunit
# Further stages, and jobs e.g. linting, cgl, etc.