-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
50 lines (37 loc) · 1.1 KB
/
.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
image: lorisleiva/laravel-docker:latest
before_script:
# Install git, the php image doesn't have installed.
- apk add ffmpeg
# The job's name.
composer:
# The job's stage (build, test or deploy).
stage: build
# What to run on the job.
script:
- composer install --prefer-dist --no-ansi --no-interaction --no-progress --no-scripts
artifacts:
# (Optional) Give it an expiration date,
# after that period you won't be able to
# download them via the UI anymore.
expire_in: 1 month
# Define what to output from the job.
paths:
- vendor/
cache:
# The variable CI_COMMIT_REF_SLUG
# refers to the slug of the branch.
# For example: `master` for the master branch.
# We use the `composer` suffix to avoid conflicts with
# the `npm` cache that we'll define next.
key: ${CI_COMMIT_REF_SLUG}-composer
# Define what to cache.
paths:
- vendor/
phpunit:
stage: test
script:
- phpunit --coverage-text --colors=never
static_analysis:
stage: test
script:
- php -d memory_limit=512M ./vendor/bin/phpstan analyse -c phpstan.neon