forked from josegonzalez/php-queuesadilla
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (38 loc) · 1.28 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
language: php
services:
- mysql
- postgres
# - rabbitmq
- redis-server
php:
- 7.2
- 7.3
env:
global:
- BEANSTALK_URL="beanstalk://127.0.0.1:11300?queue=default&timeout=1"
- MEMORY_URL="memory:///?queue=default&timeout=1"
- MYSQL_URL="mysql://[email protected]:3306/database_name?queue=default&timeout=1"
- NULL_URL="null:///?queue=default&timeout=1"
- REDIS_URL="redis://[email protected]:6379/0?queue=default&timeout=1"
- MEMORY_URL="synchronous:///?queue=default&timeout=1"
- POSTGRES_URL="pgsql://[email protected]:5432/database_name?queue=default"
before_script:
- sudo apt-get update
# beanstalkd
- sudo apt-get install -qq --force-yes beanstalkd
# mysql
- mysql -e 'CREATE DATABASE database_name;'
- mysql database_name < config/schema-mysql.sql
# postgres
- psql -c "CREATE DATABASE database_name;" -U postgres;
- psql -d database_name -f config/schema-pgsql.sql -U postgres;
# extensions
- echo "extension = redis.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- composer self-update
- composer install
script:
- vendor/bin/phpcs --standard=psr2 src/
- vendor/bin/phpunit
- vendor/bin/phpmd src/ text cleancode,codesize,controversial,design,naming,unusedcode
after_success:
- php vendor/bin/php-coveralls -v