forked from yiisoft/yii2-queue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (33 loc) · 845 Bytes
/
.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
language: php
php:
- 5.5
- 5.6
- 7.0
- 7.1
matrix:
fast_finish: true
services:
- mysql
- postgresql
- redis-server
- rabbitmq
# cache vendor dirs
cache:
directories:
- $HOME/.composer/cache
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq beanstalkd
- sudo beanstalkd -d -l 127.0.0.1 -p 11300
install:
- travis_retry composer self-update && composer --version
- export PATH="$HOME/.composer/vendor/bin:$PATH"
- 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 --verbose