2019-12-24 02:16:24 +01:00
|
|
|
dist: trusty
|
|
|
|
language: php
|
|
|
|
|
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
|
|
|
|
jobs:
|
2020-03-01 21:33:28 +01:00
|
|
|
include:
|
|
|
|
- php: 7.4
|
2019-12-24 02:16:24 +01:00
|
|
|
- php: nightly
|
2020-03-01 21:58:57 +01:00
|
|
|
env: NIGHTLY_BUILD=true
|
2020-03-01 21:33:28 +01:00
|
|
|
- php: 7.4
|
|
|
|
env: TYPE_CHECK=true
|
|
|
|
|
|
|
|
allow_failures:
|
|
|
|
- php: 7.4
|
|
|
|
env: TYPE_CHECK=true
|
|
|
|
|
|
|
|
fast_finish: true
|
2019-12-24 02:16:24 +01:00
|
|
|
|
|
|
|
install:
|
2020-03-01 21:33:28 +01:00
|
|
|
- php --version
|
2019-12-25 19:39:01 +01:00
|
|
|
- composer self-update
|
|
|
|
- composer --version
|
2020-03-01 21:58:57 +01:00
|
|
|
- if [[ $NIGHTLY_BUILD = 'true' ]]; then composer install --ignore-platform-reqs; else composer install; fi
|
2019-12-24 02:16:24 +01:00
|
|
|
|
|
|
|
script:
|
2020-01-02 00:31:28 +01:00
|
|
|
- composer test:unit
|
2020-03-01 21:58:57 +01:00
|
|
|
- if [[ $NIGHTLY_BUILD != 'true' ]]; then composer cs:check; fi
|
2020-03-01 21:33:28 +01:00
|
|
|
- if [[ $TYPE_CHECK = 'true' ]]; then composer type:check; fi
|
2019-12-25 19:39:01 +01:00
|
|
|
|
|
|
|
after_script:
|
2020-03-01 21:33:28 +01:00
|
|
|
- if [[ $NIGHTLY != 'true' ]]; then composer code:coverage; fi
|
|
|
|
- if [[ $TYPE_CHECK = 'true' ]]; then composer type:coverage; fi
|