2016-05-25 11:46:13 +00:00
|
|
|
before_script:
|
|
|
|
# Install dependencies
|
|
|
|
- bash CI/docker_install.sh > /dev/null
|
|
|
|
|
|
|
|
stages:
|
|
|
|
- build
|
|
|
|
- test
|
|
|
|
- deploy
|
|
|
|
|
|
|
|
build:composer:
|
2017-09-22 13:42:54 +00:00
|
|
|
image: php:7.1
|
2016-05-25 11:46:13 +00:00
|
|
|
stage: build
|
|
|
|
script:
|
|
|
|
- curl -sS https://getcomposer.org/installer | php
|
|
|
|
- php composer.phar install
|
|
|
|
cache:
|
2018-04-16 18:20:08 +00:00
|
|
|
key: "$CI_BUILD_REF_$CI_BUILD_REF_NAME"
|
2016-05-25 11:46:13 +00:00
|
|
|
paths:
|
|
|
|
- vendor/
|
|
|
|
|
2017-09-22 13:42:54 +00:00
|
|
|
test:7.0:
|
2016-05-25 11:46:13 +00:00
|
|
|
stage: test
|
2017-09-22 13:42:54 +00:00
|
|
|
image: php:7.0
|
2016-05-25 11:46:13 +00:00
|
|
|
script:
|
2016-05-27 14:33:12 +00:00
|
|
|
- vendor/bin/phpunit -c tests/phpunit.xml --coverage-text
|
2016-05-25 11:46:13 +00:00
|
|
|
cache:
|
2018-04-16 18:20:08 +00:00
|
|
|
key: "$CI_BUILD_REF_$CI_BUILD_REF_NAME"
|
2016-05-25 11:46:13 +00:00
|
|
|
paths:
|
2018-04-16 18:20:08 +00:00
|
|
|
- vendor
|
2016-05-25 11:46:13 +00:00
|
|
|
|
2017-09-22 13:42:54 +00:00
|
|
|
test:7.1:
|
2016-05-25 11:46:13 +00:00
|
|
|
stage: test
|
2017-09-22 13:42:54 +00:00
|
|
|
image: php:7.1
|
2016-05-25 11:46:13 +00:00
|
|
|
script:
|
2016-05-27 14:33:12 +00:00
|
|
|
- vendor/bin/phpunit -c tests/phpunit.xml --coverage-text
|
2016-05-25 11:46:13 +00:00
|
|
|
cache:
|
2018-04-16 18:20:08 +00:00
|
|
|
key: "$CI_BUILD_REF_$CI_BUILD_REF_NAME"
|
2016-05-25 11:46:13 +00:00
|
|
|
paths:
|
|
|
|
- vendor/
|
|
|
|
|
|
|
|
release:
|
|
|
|
stage: deploy
|
2017-09-22 13:42:54 +00:00
|
|
|
image: php:7.1
|
2016-05-25 11:46:13 +00:00
|
|
|
only:
|
|
|
|
- master
|
|
|
|
script:
|
2016-05-27 14:33:12 +00:00
|
|
|
- vendor/bin/phpunit -c tests/phpunit.xml --coverage-text
|
2016-05-25 11:46:13 +00:00
|
|
|
artifacts:
|
|
|
|
name: "${CI_BUILD_NAME}_${CI_BUILD_REF_NAME}"
|
|
|
|
paths:
|
|
|
|
- build/
|
2016-07-07 15:48:09 +00:00
|
|
|
expire_in: 3 weeks
|
2016-05-25 11:46:13 +00:00
|
|
|
cache:
|
2018-04-16 18:20:08 +00:00
|
|
|
key: "$CI_BUILD_REF_$CI_BUILD_REF_NAME"
|
2016-05-25 11:46:13 +00:00
|
|
|
paths:
|
|
|
|
- vendor/
|