-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy path.gitlab-ci.yml
29 lines (25 loc) · 920 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
cache:
key: $CI_BUILD_REF_NAME
paths:
- vendor/
- ~/.composer/cache/files/
before_script:
- composer install --prefer-dist --no-ansi --no-interaction --no-progress --no-scripts
php7.1:
image: edbizarro/gitlab-ci-pipeline-php:7.1
script:
- vendor/bin/phpunit --coverage-text --colors=never --stderr
php7:
image: edbizarro/gitlab-ci-pipeline-php:7.0
script:
- vendor/bin/phpunit --coverage-text --colors=never --stderr
php5:
image: edbizarro/gitlab-ci-pipeline-php:5.6
before_script:
- /bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024
- /sbin/mkswap /var/swap.1
- /sbin/swapon /var/swap.1
- composer install --prefer-dist --no-ansi --no-interaction --no-progress --no-scripts
script:
- vendor/bin/phpunit --coverage-text --colors=never --stderr
- php vendor/bin/codacycoverage clover build/logs/clover.xml