Commit 234a6607 authored by Jakub Konečný's avatar Jakub Konečný

ci: test also with lowest possible version of dependencies

parent 791f6173
Pipeline #60853149 passed with stage
in 2 minutes and 45 seconds
......@@ -9,21 +9,33 @@ cache:
- vendor/
before_script:
- composer install --prefer-dist --no-progress --no-suggest --no-interaction
- composer update --prefer-dist --no-progress --no-suggest --no-interaction
test:default:
.job_template: &test_job
stage: test
script:
- phing test
test:default:
<<: *test_job
test:default:lowest-deps:
<<: *test_job
before_script:
- composer update --prefer-lowest --prefer-dist --no-progress --no-suggest --no-interaction
test:php7.3:
stage: test
<<: *test_job
image: nexendrie/php:7.3
script:
- phing test
test:php7.3:lowest-deps:
<<: *test_job
image: nexendrie/php:7.3
before_script:
- composer update --prefer-lowest --prefer-dist --no-progress --no-suggest --no-interaction
test:cc:
stage: test
<<: *test_job
script:
- phing test-coverage
coverage: '/(\d+\%) covered/'
......
......@@ -159,11 +159,13 @@ build:
rabbitmq: false
nodes:
tests:
dependencies:
override:
- wget https://www.phing.info/get/phing-latest.phar && mv phing-latest.phar phing && chmod +x phing
- composer update --prefer-dist --no-progress --no-suggest --no-interaction
tests:
override:
- php-scrutinizer-run
- wget https://www.phing.info/get/phing-latest.phar && mv phing-latest.phar phing && chmod +x phing
- composer install --prefer-dist --no-progress --no-suggest --no-interaction
-
command: ./vendor/bin/phpcs . --extensions=php,phpt --report=checkstyle --report-file=codesniffer.cs --standard=vendor/nexendrie/code-quality/ruleset.xml
analysis:
......
language: php
php:
- 7.2
- 7.3
- '7.2'
- '7.3'
- nightly
notifications:
email: false
env:
- dependencies=lowest
- dependencies=highest
matrix:
allow_failures:
- php: nightly
before_install:
- composer self-update
fast_finish: true
install:
- wget https://www.phing.info/get/phing-latest.phar && mv phing-latest.phar phing && chmod +x phing
- composer install --prefer-dist --no-progress --no-suggest --no-interaction
- if [ "$dependencies" = "highest" ]; then composer update --prefer-dist --no-progress --no-suggest --no-interaction; fi
- if [ "$dependencies" = "lowest" ]; then composer update --prefer-lowest --prefer-dist --no-progress --no-suggest --no-interaction; fi
script:
- ./phing test
......
......@@ -29,7 +29,9 @@
"require-dev": {
"nexendrie/code-quality": "dev-master",
"tracy/tracy": "^2.4 || ^3.0",
"nexendrie/site-generator": "^1.0"
"nexendrie/site-generator": "^1.0",
"nette/http": "^2.4.7 || ^3.0",
"nette/caching": "^2.5 || ^3.0"
},
"autoload": {
"psr-4": {
......
......@@ -7,5 +7,8 @@ parameters:
- '#Variable method call on \$this\(Nexendrie\\BookComponent\\BookControl\)#'
- '#Parameter \#1 \$parameter \((\(callable\)|string|bool)\|null\) of method Nexendrie\\BookComponent\\Condition[a-zA-Z]+::isAllowed\(\) should be contravariant with parameter \$parameter \(mixed\) of method Nexendrie\\BookComponent\\IBookPageCondition::isAllowed\(\)#'
- '#Call to function is_bool\(\) with bool will always evaluate to true#'
# next 2 lines are needed for Nette 2.4
- '#Nexendrie\\BookComponent\\BookControl::__construct\(\) does not call parent constructor from Nette\\ComponentModel\\Component#'
reportUnmatchedIgnoredErrors: false
universalObjectCratesClasses:
- Nette\Bridges\ApplicationLatte\Template
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment