forked from julienj/twity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (34 loc) · 904 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
dist: xenial
language: php
addons:
apt:
packages:
- rabbitmq-server
- librabbitmq-dev
php:
- 7.2
- 7.3
services:
- mongodb
- rabbitmq
env:
global:
- APP_ENV=test
- APP_SECRET=azertyuiopqsdfghjklm
- MONGODB_URL=mongodb://travis:test@localhost:27017/twity_test
- MONGODB_DB=twity_test
- MESSENGER_TRANSPORT_DSN=amqp://guest:guest@localhost:5672/%2f/messages
- MERCURE_ENABLED=false
before_install:
- printf "\n" | pecl install amqp
- echo "extension = amqp.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- echo "extension = mongodb.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- composer self-update
install:
- composer install
- npm install
- npm run build
before_script:
- sleep 15
- mongo twity_test --eval 'db.createUser({user:"travis",pwd:"test",roles:["readWrite"]});'
script: vendor/bin/behat