-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
31 lines (25 loc) · 959 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# To contribute improvements to CI/CD templates, please follow the Development guide at:
# https://docs.gitlab.com/ee/development/cicd/templates.html
# This specific template is located at:
# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Composer.gitlab-ci.yml
test:
# Select image from https://hub.docker.com/_/php/
image: php:8.2
variables:
COMPOSER_AUTH_TOKEN: "$CI_JOB_TOKEN"
COMPOSER_AUTH_USER: job-token
COMPOSER_AUTH_HOST: "$CI_SERVER_HOST"
COMPOSER_AUTH: '{"gitlab-oauth":{"$CI_SERVER_HOST":"$CI_JOB_TOKEN"}}'
# Select what we should cache
cache:
paths:
- vendor/
before_script:
- apt update -yqq
- apt install git libpq-dev libzip-dev zip -yqq
# Install composer
- curl -sS https://getcomposer.org/installer | php
# Install all project dependencies
- php composer.phar install --no-progress
script:
- vendor/bin/phpunit --configuration phpunit.xml