forked from zencart/zencart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
85 lines (69 loc) · 2.39 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
80
81
82
83
84
language: php
sudo: false
cache:
directories:
- $HOME/.composer/cache
php:
- 7.1
- 7.0
- 5.6
- 5.5
- nightly
matrix:
fast_finish: true
allow_failures:
- php: nightly
env:
global:
- DB=mysql
- secure: rHzH5GDl7vGz1jq0Xb4WD2Z0hC94A9kHCxMrkuiZZm/oqn+Abt0mkwwO9K23GXtxEaoCQcgoF4ogs6T7lMZHaINEVfwNHix+TfF7macDWPESdHFdo01haONoPf2ZfqI5zEb28dYvYMvOwVD1r3sbadNvSSNf16lDDUx+aNUwXqw=
- secure: RceQiWqq7eknG2MPN8IlpdH7nfGaqe7xm17vQndfbXPuED8a87dU4lJHPWCInaqcYte1IDmYsqR59+Ksq8ryC0CbScCf+QKT6kY6FwnzzPCzTU88FrYRXXRbJdfodHb3QTRY747ek4sBdUyaG8Jq28lHH8ZbM6onqrOyylf+pA8=
addons:
#uncomment the following to trigger sauce webtests
# sauce_connect: true
services: memcached
git:
submodules: false
depth: 2
before_install:
- travis_retry composer self-update -q
- if [ -n "$GH_TOKEN" ]; then composer config github-oauth.github.com ${GH_TOKEN}; fi;
install:
# remove xdebug for speed; caveat is it can't generate code-coverage (not concerned about that presently)
- phpenv config-rm xdebug.ini
- echo $TRAVIS_PHP_VERSION
# downgrade phpunit for older PHP version
- if [ "${TRAVIS_PHP_VERSION}" == "5.5" ]; then rm composer.lock && cp testFramework/composer-php55.lock composer.lock ; fi
# do composer install
- travis_wait composer install --no-interaction
branches:
except:
- "/^v15.*$/"
before_script:
- touch includes/configure.php
# php
# - echo 'date.timezone = "Europe/London"' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
# mysql
- mysql --version
- mysql --execute="create database IF NOT EXISTS zencart;" --user=travis
# set up apache server and vhost
# - bash testFramework/setup/do-apache.sh
# sauce setup
# - bash testFramework/setup/do-sauce.sh
- mkdir -p build/logs
# start PHP webserver
- "php -S 127.0.0.1:8000 > /dev/null &"
# Start PhantomJS
- "phantomjs --webdriver=8643 --ignore-ssl-errors=true > /dev/null &"
script:
# unittests
- php vendor/bin/phpunit -c testFramework/unittests/phpunit.xml
# webtests
- vendor/bin/behat
after_script:
#- vendor/bin/phpcs --standard=PSR2 includes/ testFramework/
#- php vendor/bin/coveralls
#- vendor/bin/phpmd includes/ text cleancode,codesize,controversial,design,naming,unusedcode
notifications:
slack:
secure: srX7adSXCcUZKL26uVDUSwjZmIz9+l93G78RXOFY+nTvh1WMgjyYKdoSWLM9HanCBbMGuQ2xYup/w6Bl7yIwyo6ubgigGG1pIqlfLDaa8BPvV+K6p9XD5tK9izrzHK6T6Z/NHIuC41Tjka4IXT424aIPmsN5SkcfbWHeLuX6WOo=