This repository has been archived by the owner on Jul 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
38 lines (30 loc) · 1.54 KB
/
.travis.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
dist: bionic
language: php
php:
- 8.1
- 8.2
env:
global:
- SETUP=stable
matrix:
- COMPOSER_FLAGS="--prefer-lowest"
- COMPOSER_FLAGS=""
cache:
directories:
- $HOME/.composer/cache
install:
- if [[ $SETUP = 'stable' ]]; then travis_retry composer update --prefer-dist --no-interaction --prefer-stable --no-suggest; fi
- if [[ $SETUP = 'lowest' ]]; then travis_retry composer update --prefer-dist --no-interaction --prefer-lowest --prefer-stable --no-suggest; fi
before_script:
- travis_retry composer self-update
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-source
script:
- vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
notifications:
email: false
slack:
rooms:
- secure: myEJBfQDHA5eZY83YboRwCmCnxp0SOps9/FXEQsu6vvYKJQWFvCHbh9xM73MQ1Bu6vckmfYqrB/55unGSZni3GDnKuZD+7b3fvXEZwZywNxf31Yby/6j3EMTL108u8AwGcXc+d1g35MoQHlsUYnnuxPJfA/fdVRPAU9tKC9yEy9pt6B7Q74/jhoPjVF4/zfa3RwwpWCuUD4YOVonkFayEu2aG6+NNyEci2WWYjSJdaDtVzSw8IFgBTWv2Uasl2lnMPhoZyhnR51Lm9W17rhBmkB6qtP2DP1eccEHrLJGFiRCNyglWHafZcJDODTYooGzV3M3nqfTi63TtMmVoleLE1aZACGyh+noysEFOUfV7XVTn8fu9Gp0p1rXd2z9Q/XxpNxspnI1ZiP443BMyBGqQ4XVLQiiZWvwlF/4pbBkubFGvMka95vgON9Mn4tMa4upTET0sJsLsSHj9MbY9WZqla7vJ4jhCwwlFwLHlzLP/5LYjftItjLzZaZWfxk0J7dxBuoEnw22w2mkVoOKeuFLZ6Wf17CPbMhPHFsdscgqnsFSC8cLjfrGq40CBWS1DD1Whos/nInap9R+zv1Vz0oAoW/o4oaQeRRzjmoo8pFvtr6cV/lZF5JLA9hORr/K8/em0K1dgnildvACcKep1ZCbxehXIc1AsKBcYgGxkkSp0QY=