forked from ivanproskuryakov/Aisel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
executable file
·53 lines (43 loc) · 1.52 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
language: php
php:
- 5.4
branches:
only:
- master
before_install:
# Install node.js
- npm install -g grunt-cli
- npm install -g bower
# Install node packages
- npm install
- node -v
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
install:
# Install php packages
- sudo apt-get update > /dev/null
- sudo apt-get install -y --force-yes apache2 libapache2-mod-php5 php5-curl php5-mysql php5-intl
# Create VirtualHost
- sudo sed -i -e "s,/var/www,$(pwd)/web,g" /etc/apache2/sites-available/default
- sudo sed -i -e "/DocumentRoot/i\ServerName aisel.dev" /etc/apache2/sites-available/default
- echo "127.0.0.1 aisel.dev" | sudo tee -a /etc/hosts
- sudo /etc/init.d/apache2 restart
before_script:
# Update composer
- composer self-update
- composer install
# Copy skeleton parameters file & Load Fixtures
- cp app/config/parameters.yml.travis app/config/parameters.yml
- 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 assets:install web --symlink
- php app/console cache:warmup --env=test
- chmod -R 777 app/cache app/logs
- bower install -f
script:
- bin/behat --stop-on-failure --suite=api.page
- bin/behat --stop-on-failure --suite=api.category
- bin/behat --stop-on-failure --suite=api.navigation
- bin/behat --stop-on-failure --suite=api.settings
- grunt karma