mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-19 04:24:12 +00:00
31 lines
596 B
YAML
31 lines
596 B
YAML
image: php:7.4
|
|
stages:
|
|
- build
|
|
- test
|
|
|
|
before_script:
|
|
- apt-get update -yqq
|
|
- apt-get install -yqq
|
|
|
|
#install php depandancies
|
|
- docker-php-ext-install mbstring xml
|
|
|
|
# Install composer package manager
|
|
- curl --location --output /usr/local/bin/composer https://getcomposer.org/download/latest-stable/composer.phar
|
|
- chmod +x /usr/local/bin/composer
|
|
|
|
#jobs
|
|
build_job:
|
|
stage: build
|
|
script:
|
|
- composer install --ignore-platform-reqs
|
|
rules:
|
|
- if: '$CI_COMMIT_BRANCH =~ /.*/'
|
|
|
|
test_job:
|
|
stage: test
|
|
script:
|
|
- vendor/bin/phpunit
|
|
rules:
|
|
- if: '$CI_COMMIT_BRANCH =~ /.*/'
|