You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
544 B

image: juban/yii2-php-56:1.0.0
cache:
key: "$CI_BUILD_NAME_$CI_BUILD_REF_NAME"
untracked: true
paths:
- /root/.composer
stages:
- build
- test
- deploy
build:
stage: build
script:
- composer install --dev --prefer-dist --no-interaction
artifacts:
name: "${CI_BUILD_NAME}_${CI_BUILD_REF_NAME}"
expire_in: 1 week
untracked: true
test:
stage: test
only:
- master
script:
- phpunit --coverage-text --colors=never --coverage-html tests/report
artifacts:
paths:
- tests/report