-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
65 lines (63 loc) · 1.66 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
language: php
php:
# - '7.0'
- '7.1'
- '7.2'
git:
depth: 5
services:
- mysql
node_js:
- "0.10"
before_script:
# XVFB
- "export DISPLAY=:99.0"
- "Xvfb :99.0 -extension RANDR > /dev/null &"
#- "export DISPLAY=:99.0"
#- "sh -e /etc/init.d/xvfb start"
#- sleep 3 # give xvfb some time to start
install:
# Selenium server
- "wget http://selenium-release.storage.googleapis.com/3.5/selenium-server-standalone-3.5.1.jar"
- "sudo java -jar selenium-server-standalone-3.5.1.jar > /dev/null 2>/dev/null &"
#- sleep 30 # gives enough time to Selenium to start
- "php www/index.php -S 127.0.0.1:8888 -t . >/dev/null 2>&1 &"
# Start up the webdriver.
- phantomjs --webdriver=4444 >/dev/null 2>&1 &
- composer self-update
- composer install
- "wget http://codeception.com/codecept.phar"
- "cp ./codeception.sample.travis.yml ./codeception.yml"
#- "cp ./tests/acceptance.suite.sample.travis.yml ./tests/acceptance.suite.yml"
script:
# - php ./vendor/codecept.phar build
# - php ./vendor/codecept.phar run acceptance
- php ./codecept.phar run
#deploy:
# skip_cleanup: true
addons:
hosts:
- derive.travis
firefox: latest
chrome: stable
sudo: true
cache:
bundler: true
directories:
- vendor
- bower_components
- components
- $HOME/.composer/cache
- $HOME/.npm
- $HOME/.cache # includes bowers cache
notifications:
email: false
webhooks:
urls:
- http://condo.foobar.si/webhook
- http://center.foobar.si/webhook
on_success: always # default: always
on_failure: always # default: always
on_start: always # default: never
on_cancel: always # default: always
on_error: always # default: always