-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
37 lines (34 loc) · 902 Bytes
/
.gitlab-ci.yml
File metadata and controls
37 lines (34 loc) · 902 Bytes
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
32
33
34
35
36
37
variables:
GIT_DEPTH: 1
GIT_STRATEGY: clone
stages:
- pre-test
- build
before_script:
- echo "ipv6" >> /etc/modules
job_test_ci:
image: discordier/php-runner:8.1-alpine
stage: pre-test
except:
- tags
variables:
COMPOSER_AUTH: '{"http-basic":{"$CI_SERVER_HOST":{"username":"gitlab-ci-token","password":"$CI_JOB_TOKEN"}}}'
before_script:
- composer self-update -vvv && composer --version
- composer install --prefer-dist --no-interaction --no-progress --no-scripts
- vendor/bin/phpcq self-update --unsigned
script:
- vendor/bin/phpcq install -vvv
- vendor/bin/phpcq run -v -o default -r code-climate -r file-report
cache:
paths:
- vendor/
- ~/.cache/composer/
- .phpcq/plugins
artifacts:
paths:
- .phpcq/build*
expire_in: 1 week
name: pre-test
reports:
codequality: .phpcq/build/code-climate.json