]> git.p6c8.net - jirafeau_mojo42.git/blob - .gitlab-ci.yml
[BUGFIX] lower POST size when ̀PHP's upload_max_filesize is too low.
[jirafeau_mojo42.git] / .gitlab-ci.yml
1 # Select docker image from https://hub.docker.com/_/php/
2 image: php:7.3
3
4 # Select what we should cache
5 cache:
6 paths:
7 - vendor/
8
9 before_script:
10 # Install git, the docker php image doesn't have it installed by default
11 - apt-get update -yqq
12 - apt-get install git -yqq
13 - apt-get install zip -yqq
14 # Enable necessary php extensions
15 - docker-php-ext-enable curl && docker-php-ext-enable json && docker-php-ext-enable zip && docker-php-ext-enable mbstring && docker-php-ext-enable gd && docker-php-ext-enable pdo_mysql
16 # Install composer
17 - curl -sS https://getcomposer.org/installer | php
18 # Create composer.json file manually, since this is a project without any non-dev dependencies yet
19 - php composer.phar require --dev php-parallel-lint/php-parallel-lint
20 # Install all project dependencies
21 - php composer.phar install
22
23 # Run tests
24 test_app_phpdefaultversion:
25 script:
26 - ./vendor/bin/parallel-lint --exclude vendor .
27
28 job_lint_app_phpnextversion:
29 image: php:7.4
30 script:
31 - ./vendor/bin/parallel-lint --exclude vendor .
32 allow_failure: true
33
34 # Run same tests with older supported versions
35 test_app_php72:
36 image: php:7.2
37 script:
38 - ./vendor/bin/parallel-lint --exclude vendor .
39
40 test_app_php71:
41 image: php:7.1
42 script:
43 - ./vendor/bin/parallel-lint --exclude vendor .
44
45 test_app_php70:
46 image: php:7.0
47 script:
48 - ./vendor/bin/parallel-lint --exclude vendor .
49
50 test_app_php56:
51 image: php:5.6
52 script:
53 - ./vendor/bin/parallel-lint --exclude vendor .

patrick-canterino.de