-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.travis.yml
44 lines (32 loc) · 949 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
42
43
44
language: php
env:
global:
- MONGO_HOST=127.0.0.1
- BASE_URL=127.0.0.1:8080
php:
- 5.6
- 7
matrix:
allow_failures:
- php: 7
services: mongodb
before_script:
- echo "extension = mongo.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- composer selfupdate
- composer install --no-interaction --prefer-dist --no-scripts
- chmod -R 777 app/cache app/logs
- app/console --env=test cache:warmup
- chmod -R 777 app/cache app/logs
- app/console doctrine:mongodb:schema:create
- app/console doctrine:mongodb:fixtures:load
- app/console server:run 127.0.0.1:8080 --no-debug > webserver.log 2>&1 &
- sh -e /etc/init.d/xvfb start
- export DISPLAY=:99.0
- wget http://selenium.googlecode.com/files/selenium-server-standalone-2.31.0.jar
- java -jar selenium-server-standalone-2.31.0.jar > /dev/null &
- sleep 5
notifications:
email: false
script:
- ./bin/phpunit -c app
- ./bin/behat