mirror of
https://github.com/Aviortheking/DeltaCMS.git
synced 2025-06-24 22:29:18 +00:00
Updated Gitlab CI to use composer
This commit is contained in:
@ -8,6 +8,10 @@ cache:
|
||||
- vendor/
|
||||
- node_modules/
|
||||
|
||||
stages:
|
||||
- build
|
||||
- test
|
||||
|
||||
before_script:
|
||||
- apt-get update -yqq
|
||||
- apt-get install -yqq git libzip-dev libmcrypt-dev libpq-dev libcurl4-gnutls-dev libicu-dev libvpx-dev libjpeg-dev libpng-dev libxpm-dev zlib1g-dev libfreetype6-dev libxml2-dev libexpat1-dev libbz2-dev libgmp3-dev libldap2-dev unixodbc-dev libsqlite3-dev libaspell-dev libsnmp-dev libpcre3-dev libtidy-dev
|
||||
@ -18,7 +22,6 @@ before_script:
|
||||
- docker-php-ext-enable xdebug
|
||||
# Install and run Composer
|
||||
- curl -sS https://getcomposer.org/installer | php
|
||||
- php composer.phar install
|
||||
|
||||
# Bring in any services we need http://docs.gitlab.com/ee/ci/docker/using_docker_images.html#what-is-a-service
|
||||
# See http://docs.gitlab.com/ce/ci/services/README.html for examples.
|
||||
@ -33,7 +36,18 @@ variables:
|
||||
|
||||
# Run our tests
|
||||
# If Xdebug was installed you can generate a coverage report and see code coverage metrics.
|
||||
test:
|
||||
build:
|
||||
stage: build
|
||||
script:
|
||||
- vendor/bin/phpunit --coverage-text --colors=never
|
||||
- vendor/bin/codacycoverage clover tmp/code-coverage.xml
|
||||
- php composer.phar install
|
||||
|
||||
phpmd:
|
||||
stage: test
|
||||
script:
|
||||
- composer run phpmd
|
||||
|
||||
phpcs:
|
||||
stage: test
|
||||
script:
|
||||
- php composer.phar run phpcs
|
||||
- vendor/bin/codacycoverage clover tmp/code-coverage.xml
|
||||
|
Reference in New Issue
Block a user