-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
65 lines (51 loc) · 1.97 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:
- 5.6
- 7.0
- hhvm
services:
- mysql
before_script:
- sudo apt-get update > /dev/null
- sudo apt-get install libxss1 libappindicator1 libindicator7 fonts-liberation
- wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
- sudo dpkg -i google-chrome*.deb
- sudo apt-get install -f
- sudo apt-get install xvfb
- sudo apt-get install unzip
- wget -N http://chromedriver.storage.googleapis.com/2.20/chromedriver_linux64.zip
- unzip chromedriver_linux64.zip
- chmod +x chromedriver
- sudo mv -f chromedriver /usr/local/share/chromedriver
- sudo ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver
- sudo ln -s /usr/local/share/chromedriver /usr/bin/chromedriver
- "sh -e /etc/init.d/xvfb start"
- "export DISPLAY=:99.0"
- "wget http://selenium-release.storage.googleapis.com/2.49/selenium-server-standalone-2.49.1.jar"
- "java -jar selenium-server-standalone-2.49.1.jar > /dev/null &"
- sleep 5
- curl -s http://getcomposer.org/installer | php
- echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
- php composer.phar install
- mysql -e 'create database ep_test;'
- sudo add-apt-repository -y ppa:chris-lea/node.js
- sudo apt-get -y update
- sudo apt-get -y install nodejs
- sudo npm install -g grunt-cli
- sudo npm install -g bower
- sudo npm install
- bower install
- grunt
- mv .env.travis .env
- php artisan migrate --force
- php artisan db:seed --force
- chmod -R 777 bootstrap storage
- php artisan key:generate
- php artisan serve > /dev/null &
- sleep 10
after_script:
- if [ "$TRAVIS_PHP_VERSION" != "7.0" ] && [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then wget https://scrutinizer-ci.com/ocular.phar; fi
- if [ "$TRAVIS_PHP_VERSION" != "7.0" ] && [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi
script:
- ./vendor/bin/behat
- phpunit --coverage-clover=coverage.clover