-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (47 loc) · 1.53 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
language: php
cache:
directories:
- $HOME/.composer/cache
php:
- 5.4
- 5.5
- 5.6
- 7.0
- nightly
matrix:
allow_failures:
- php: nightly
env:
- DB_USER=root DB_HOST=127.0.0.1
before_script:
- sudo apt-get update -qq
- sudo apt-get install -y language-pack-fr language-pack-fr-base
- phpenv config-add travis.php.ini
- phpenv config-rm xdebug.ini
- composer self-update
- composer install --no-interaction --prefer-dist
- sh -c "mysql -u$DB_USER -e 'SET FOREIGN_KEY_CHECKS = 0; DROP DATABASE IF EXISTS
thelia;SET FOREIGN_KEY_CHECKS = 1;'; fi"
- php Thelia thelia:install --db_host=$DB_HOST --db_username=$DB_USER --db_name=thelia
- php setup/faker.php -r 0
- php Thelia module:refresh
- php Thelia module:activate Colissimo
- php Thelia module:activate Cheque
- php Thelia module:activate HookTest
- php Thelia module:activate VirtualProductDelivery
- php Thelia admin:create --login_name thelia2 --password thelia2 --last_name thelia2 --first_name thelia2 --email thelia2@example.com
- export PHANTOMJS_EXECUTABLE='phantomjs --local-to-remote-url-access=yes --ignore-ssl-errors=yes'
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sleep 3
- php -S localhost:8000 -t web/ >/dev/null 2>&1 &
- sleep 3
- cd ..
- git clone https://github.com/n1k0/casperjs.git
- cd casperjs
- git checkout tags/1.1-beta3
- cd ../thelia
script: "./run-tests.sh"
notifications:
slack:
secure: juEYyXsn7m8tnSQXOBj9MtS0izIs1Y4ISAfEbD6oINnEt56XXgAj3ZbEPJsJIMl/z2ThksqT++0+84f3a/IJ4RYiQUwKNCBjz1vjk544ma3cqn5SETTKKeiaUKKJCM88VmfybJZ/BMuiLMFghsI9U2F1SIa+GSYicYPA2dQ4BX0=