forked from 418sec/thirtybees
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
48 lines (37 loc) · 1.09 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
language: php
php:
- 5.6
- 7.0
- 7.3
- 7.4
os: linux
jobs:
fast_finish: true
services:
- mysql
git:
depth: 3
cache:
directories:
- $HOME/.composer/cache
before_install:
- composer install --prefer-dist --no-interaction --no-progress
install:
- php install-dev/index_cli.php --newsletter=0 --language=en --country=us --domain=thirty.bees:8888 --db_name=thirtybees --db_create=1 --name=thirtybees --email=test@thirty.bees --firstname=thirty --lastname=bees --password=thirtybees
script:
- tests/validate.sh
- vendor/bin/codecept run unit -c .
- vendor/bin/codecept run integration -c .
- phpenv config-rm xdebug.ini
- echo "<?php if (!defined('_PS_MODE_DEV_')) define('_PS_MODE_DEV_', true);" > ./config/defines_custom.inc.php
- php -S thirty.bees:8888 -t . >/dev/null 2>&1 &
- phantomjs --webdriver=4444 >/dev/null 2>&1 &
- sleep 10
- vendor/bin/codecept run functional -c .
# - vendor/bin/codecept run acceptance -c .
- if [ -f log/2* ]; then cat log/2*; false; fi
after_success:
- php vendor/bin/coveralls -c .coveralls.yml
addons:
hosts:
- thirty.bees