-
Notifications
You must be signed in to change notification settings - Fork 151
/
.travis.yml
32 lines (28 loc) · 844 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
language: php
php:
- 7.1
services:
- mysql
addons:
apt:
packages:
- google-chrome-stable
before_script:
- php ./composer.phar install
- mysql -e 'create database cargo_sample;'
- cp ./config/autoload/local.php.dist ./config/autoload/local.php
- cp ./config/behat.yml.travis ./config/behat.yml
- chmod -R 777 ./data/cache
- php ./bin/migrations.php migrations:migrate -n
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3
- "java -jar ./selenium-server-standalone-2.46.0.jar -Dwebdriver.chrome.driver=./chromedriver > /dev/null &"
# webserver setup
- php -S localhost:8000 -t ./public &
- sleep 10
script:
- php ./bin/kawaii gherkin:check features/
- php ./bin/phpunit -c ./CargoBackend/tests
- php ./bin/phpunit -c ./GraphTraversalBackend/tests
- php ./bin/behat --verbose