-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
81 lines (66 loc) · 1.87 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
language: php
php:
- 8.0
os: linux
dist: bionic
env:
global:
- PHALCON_VERSION="v5.0.0beta3"
- DB_NAME="servicelayer_test"
git:
depth: 1
matrix:
fast_finish: true
addons:
apt:
packages:
- gdb
- libsodium-dev
cache:
timeout: 604800
directories:
- $HOME/.composer/cache
services:
- mysql
- memcached
- redis
before_install:
# db
- sudo mysql -e "USE mysql; UPDATE user SET authentication_string=PASSWORD('%%travis%%') WHERE user='root'; UPDATE user set plugin='mysql_native_password'; FLUSH PRIVILEGES;"
- sudo mysql_upgrade -u root -p%%travis%%
- sudo service mysql restart
# php ini settings
- php -i
- export INI=~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- echo memory_limit = -1 >> $INI
- echo opcache.enable_cli = 1 >> $INI
# suppress git advisories
- git config --global advice.detachedHead false
install:
- .ci/install-extensions.sh
- travis_wait .ci/install-phalcon.sh
- travis_retry composer update --no-interaction --no-progress --no-ansi --no-suggest --ignore-platform-reqs
before_script:
- pecl install --force psr
- phpenv config-rm xdebug.ini || exit 0
- pecl install pcov
- mysql -u root -p%%travis%% -e "CREATE DATABASE IF NOT EXISTS ${DB_NAME} charset=utf8mb4 collate=utf8mb4_unicode_ci;"
- mysql -u root -p%%travis%% ${DB_NAME} < tests/_data/dump.sql
- cp .env.dist .env
script:
- vendor/bin/codecept clean
- vendor/bin/codecept build --quiet
- vendor/bin/codecept run --coverage --coverage-xml
jobs:
include:
- stage: Test coverage
if: branch = 5.x AND type = push
php: 8.0
script:
- make coverage
after_script:
- composer global require php-coveralls/php-coveralls ^2.4
- ~/.composer/vendor/bin/php-coveralls --verbose --config tests/.coveralls.yml
notifications:
email: