forked from swarrot/SwarrotBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
45 lines (35 loc) · 1.09 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
39
40
41
42
43
44
45
language: php
sudo: false
services: [rabbitmq]
cache:
directories:
- $HOME/.composer/cache
addons:
apt:
packages:
- cmake
- rabbitmq-server
env:
global:
- LIBRABBITMQ_VERSION=v0.8.0
- SYMFONY_DEPRECATIONS_HELPER="weak" # Required as latest swarrot 3.x version will always trigger a deprecation
matrix:
fast_finish: true
include:
- php: 8.0
- php: 7.3
- php: 7.2
env: COMPOSER_FLAGS="--prefer-lowest --prefer-stable" PHPUNIT_FLAGS="--exclude-group legacy" # See https://github.com/symfony/symfony/issues/22515
- php: 7.3
env: LIBRABBITMQ_VERSION="master"
- php: 7.3
env: DEPENDENCIES=dev COMPOSER_FLAGS="--prefer-stable"
before_install:
- sudo ./Tests/bin/install_rabbitmq-c.sh
- ./Tests/bin/install_php-amqp.sh
- if [ "$DEPENDENCIES" = "dev" ]; then perl -pi -e 's/^}$/,"minimum-stability":"dev"}/' composer.json; fi;
install:
- composer update --prefer-dist --no-progress --no-suggest $COMPOSER_FLAGS --ansi
before_script:
- sh -c "sudo ./Tests/bin/prepare_rabbit.sh"
script: vendor/bin/phpunit $PHPUNIT_FLAGS