-
Notifications
You must be signed in to change notification settings - Fork 20
/
.gitlab-ci.yml
41 lines (35 loc) · 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
stages:
- test
cache:
paths:
- vendor
- /var/cache/apt/archives
variables:
DOCKER_DRIVER: overlay2
before_script:
- apt-get update -yqq
- apt-get install git iputils-ping wget -yqq
- ping -c 1 1.1.1.1 || true
- ping -c 1 example.com || true
- ping -c 1 github.com || true
- ping -c 1 dl-cdn.alpinelinux.org || true
- curl -sS https://getcomposer.org/installer | php
- mv composer.phar /usr/local/bin/composer
- curl --location --output /usr/local/bin/phpunit https://phar.phpunit.de/phpunit.phar
- chmod +x /usr/local/bin/phpunit /usr/local/bin/composer
- mv /usr/local/etc/php/php.ini-development /usr/local/etc/php/php.ini
- echo "memory_limit = -1" > /usr/local/etc/php/conf.d/test.ini
test:php-8.2:
stage: test
image: php:8.2
script:
- bash ./bin/prepare_tests.sh && bash ./bin/run_tests.sh
tags:
- sdo-docker-runner
test:php-8.1:
stage: test
image: php:8.1
script:
- bash ./bin/prepare_tests.sh && bash ./bin/run_tests.sh
tags:
- sdo-docker-runner