-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
59 lines (48 loc) · 1.57 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
language: php
sudo: required
dist: precise
php:
- 5.5
- 5.6
- 7.0
services:
- mysql
- memcached
cache:
directories:
- vendor
- $HOME/.composer/cache
env:
global:
- APPLICATION_ENV="travis"
matrix:
- PHALCON_VERSION="3.0.x"
- PHALCON_VERSION="v3.0.0"
install:
- composer self-update
- git clone -q --depth=1 https://github.com/phalcon/cphalcon.git -b ${PHALCON_VERSION}
- (cd cphalcon/build; bash install &>/dev/null && phpenv config-add ../tests/_ci/phalcon.ini &> /dev/null)
- php --ri phalcon
- composer install --prefer-source --no-interaction
before_script:
- echo "USE mysql;\nUPDATE user SET password=PASSWORD('password__phanbook') WHERE user='root';\nFLUSH PRIVILEGES;\n" | mysql -u root
- cp ./core/config/config.example.php ./core/config/config.php
- cp ./tests/config.travis.php ./core/config/config.travis.php
- mysql -e 'CREATE DATABASE phanbook CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;' -uroot -ppassword__phanbook
- cat schema/phanbook.sql | mysql -uroot phanbook -ppassword__phanbook
#- (cd ./scripts/ && php random-entries.php > /dev/null)
- php -S 127.0.0.1:8000 -t . .htrouter.php >/dev/null 2>&1 &
after_script:
#- mysql -e 'DROP DATABASE phanbook;' -uroot -ppassword__phanbook
script:
- vendor/bin/phpcs --standard=PSR2 --report=emacs --extensions=php --warning-severity=0 --ignore=core/common/library/Markdown core/
- vendor/bin/codecept build
- vendor/bin/codecept run
notifications:
email:
slack: phanbook:V3Gun19jnfnRafcTbvn5mFuY
addons:
hosts:
- db
- phanbook.dev