forked from yiisoft/yii2-queue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
55 lines (46 loc) · 1.42 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
46
47
48
49
50
51
52
53
54
55
language: php
php:
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3
matrix:
include:
- php: 5.5
env:
- EXCLUDE_AMQP_INTEROP=true
- EXCLUDE_STOMP=true
fast_finish: true
services:
- mysql
- postgresql
- redis-server
- rabbitmq
- docker
# cache vendor dirs
cache:
directories:
- $HOME/.composer/cache
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq beanstalkd
- sudo beanstalkd -v
- sudo service beanstalkd start
- docker pull webcenter/activemq
- docker run -d -p 61613:61613 webcenter/activemq
- if [[ ${TRAVIS_PHP_VERSION:0:1} == "5" ]]; then pecl install igbinary-2.0.8; else pecl install igbinary; fi
install:
- travis_retry composer self-update && composer --version
- export PATH="$HOME/.composer/vendor/bin:$PATH"
- if [ "$EXCLUDE_AMQP_INTEROP" = true ]; then travis_retry composer remove "enqueue/amqp-lib" "enqueue/amqp-tools" --dev --no-interaction --no-update; fi
- if [ "$EXCLUDE_STOMP" = true ]; then travis_retry composer remove "enqueue/stomp" --dev --no-interaction --no-update; fi
- travis_retry composer install --prefer-dist --no-interaction
before_script:
- mysql -e 'CREATE DATABASE yii2_queue_test;'
- php tests/yii mysql-migrate --interactive=0
- php tests/yii sqlite-migrate --interactive=0
- psql -c 'create database yii2_queue_test;' -U postgres
- php tests/yii pgsql-migrate --interactive=0
script:
- vendor/bin/phpunit