You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Mods-for-HESK-Netsyms/.gitlab-ci.yml

48 lines
825 B
YAML

stages:
- test
- deploy
before_script:
- bash ci/docker_install.sh > /dev/null
- cd api
- php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
- php composer-setup.php
- php -r "unlink('composer-setup.php');"
- php composer.phar update
test:7.1:
image: php:7.1
stage: test
script:
- composer install
- cd Tests
- phpunit
- cd ../../
- bash ci/php_lint.sh ./
test:7.0:
image: php:7.0
stage: test
script:
- bash ci/php_lint.sh ./
test:5.5:
image: php:5.5
stage: test
script:
- bash ci/php_lint.sh ./
deploy:
image: tetraweb/php
when: manual
stage: deploy
script:
- apt-get update
- apt-get install zip unzip
- composer install --no-dev
- cd ../ci
- bash build_zip.sh
artifacts:
paths:
- release.zip