-
Notifications
You must be signed in to change notification settings - Fork 44
/
Copy path.travis.yml
46 lines (40 loc) · 1.2 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
language: php
env:
global:
- APP_ENV=test
matrix:
include:
- php: '7.2'
services:
- postgresql
- redis-server
- rabbitmq
before_script:
- psql -c 'create database suorce;' -U postgres
- psql -c 'create database target;' -U postgres
env:
- SOURCE_DATABASE_URL=pgsql://postgres@localhost/suorce
- TARGET_DATABASE_URL=pgsql://postgres@localhost/target
- RABBITMQ_URL=amqp://guest:guest@localhost
- REDIS_URL=redis://localhost
- php: '7.2'
services:
- mysql
- redis-server
- rabbitmq
before_script:
- mysql -e 'CREATE DATABASE suorce;'
- mysql -e 'CREATE DATABASE target;'
env:
- SOURCE_DATABASE_URL=mysql://root@localhost/suorce
- TARGET_DATABASE_URL=mysql://root@localhost/target
- RABBITMQ_URL=amqp://guest:guest@localhost
- REDIS_URL=redis://localhost
before_install:
- echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
install:
- composer install --no-progress --no-suggest --ansi;
script:
- vendor/bin/phpspec run
- bin/console cache:clear
- vendor/bin/behat --format=progress;