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
|
|
|
|
|
|
|
fast_finish: true
|
2019-12-24 02:16:24 +01:00
|
|
|
|
2020-07-06 20:13:58 +02:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.composer/cache/files
|
|
|
|
|
|
|
|
|
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 22:20:13 +01:00
|
|
|
- if [[ $NIGHTLY_BUILD != 'true' ]]; then composer type:check; fi
|
2020-07-12 00:06:11 +02:00
|
|
|
- if [[ $NIGHTLY_BUILD != 'true' ]]; then composer security:analysis; fi
|
2019-12-25 19:39:01 +01:00
|
|
|
|
|
|
|
after_script:
|
2020-03-01 22:20:13 +01:00
|
|
|
- if [[ $NIGHTLY_BUILD != 'true' ]]; then composer code:coverage; fi
|
|
|
|
- if [[ $NIGHTLY_BUILD != 'true' ]]; then composer type:coverage; fi
|