This repository has been archived by the owner on Feb 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
79 lines (63 loc) · 2.19 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# see http://about.travis-ci.org/docs/user/languages/php/ for more hints
language: php
# list any PHP version you want to test against
php:
# using major version aliases
- 5.5
# aliased to a recent 5.6.x version
- 5.6
# aliased to a recent 7.x version
- 7.0
# aliased to a recent hhvm version
- hhvm
env:
- DB=mysql
notifications:
email:
on_success: [always|never|change] # default: change
on_failure: [always|never|change] # default: always
# optionally set up exclutions and allowed failures in the matrix
matrix:
exclude:
- php: hhvm
allow_failures:
- php: 7.0
- php: hhvm
services:
- mysql
sudo: required
addons:
firefox: "39.0"
# execute any number of scripts before the test run, custom env's are available as variables
before_script:
# - sudo apt-get update > /dev/null
# - sudo apt-get install -y --force-yes apache2 libapache2-mod-php5 php5-curl php5-mysql php5-intl
# - sudo a2enmod rewrite
# - sudo cp -f build/travis-ci-apache /etc/apache2/sites-available/default
# - sudo sed -e "s?%TRAVIS_BUILD_DIR%?$(pwd)?g" --in-place /etc/apache2/sites-available/default
# - sudo service apache2 restart
# Create folder for coverage
- mkdir -p build/logs
- php /home/travis/.phpenv/versions/5.4/bin/composer self-update
- cp app/config/parameters.yml.travis app/config/parameters.yml
- composer install
- php app/console doctrine:database:create --env=test
- php app/console doctrine:schema:create --env=test
- php app/console doctrine:fixtures:load -n --env=test
# - php app/console assetic:dump
# - npm install chromedriver
# - "export DISPLAY=:99.0"
# - "sh -e /etc/init.d/xvfb start"
# - sleep 5
# - serverUrl='http://localhost:4444'
# - wget http://selenium-release.storage.googleapis.com/2.49/selenium-server-standalone-2.49.0.jar
# - "java -jar selenium-server-standalone-2.49.0.jar > /dev/null &"
# - "export GOCEPT_SELENIUM_BROWSER='*firefox'"
# - sleep 5
# omitting "script:" will default to phpunit
# use the $DB env variable to determine the phpunit.xml to use
script:
- phpunit -c app/ src/AppBundle/Tests/Controller/Admin/ --coverage-clover build/logs/clover.xml
after_success:
- bin/coveralls -v