forked from phalcon/cphalcon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
105 lines (90 loc) · 2.6 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
sudo: false
language: php
php:
- 'master'
- '7.3'
- '7.2'
git:
depth: 1
# TODO - Remove this when we go deploy this
#branches:
# only:
# - master
# - /^(4|5)\.\d+\.(\d+|x)$/
addons:
apt:
sources:
- mysql-5.7-trusty
packages:
- beanstalkd
- gdb
- lcov
- mysql-server
- mysql-client
postgresql: "9.4"
matrix:
fast_finish: true
allow_failures:
- php: 'master'
cache:
apt: true
timeout: 604800
directories:
- ${HOME}/beanstalk
- ${HOME}/.composer/cache
- ${HOME}/pear
- ${HOME}/.local/opt
services:
- mysql
- beanstalkd
- mongodb
- redis-server
- postgresql
env:
global:
- secure: "eL8spffzdRIDAjdxG+OPJPeUCdpc/jVz6PEVYcs3z4nOnjsKDURm8cmBmGeyHMxvkdHZ6g0PO/srIKAYufZkjDCeK0vl7OBv6kNlGEuO3M7SUCAVX+J2OSg+hNlK467woxsPeMB19/vkC1HmytgpdAefFGtFp4+zsMT41YVupuA="
- CC="gcc"
- ZEPHIR_VERSION="0.11.8"
- RE2C_VERSION="1.1.1"
- REPORT_EXIT_STATUS=1
- REPORT_COVERAGE=1
- NO_INTERACTION=1
- TEST_PHP_ARGS="--show-diff"
- PATH="${HOME}/bin:${HOME}/.composer/vendor/bin:${PATH}"
- DEFAULT_COMPOSER_FLAGS="--no-interaction --no-ansi --no-progress --no-suggest"
before_install:
- if [ ! -z "${GITHUB_TOKEN}" ]; then composer config github-oauth.github.com ${GITHUB_TOKEN}; echo "Add Github token"; fi
- export PHP_MAJOR="$(php -r 'echo phpversion();' | cut -d '.' -f 1)"
- export PHP_MINOR="$(php -r 'echo phpversion();' | cut -d '.' -f 2)"
- export PHP_VERNUM="$(php-config --vernum)"
- tests/_ci/pear-setup.sh
- tests/_ci/setup-dbs.sh
- source tests/_ci/environment
- export $(cut -d= -f1 tests/_ci/environment)
- wget --no-clobber -O $HOME/bin/zephir https://github.com/phalcon/zephir/releases/download/${ZEPHIR_VERSION}/zephir.phar
- chmod +x $HOME/bin/zephir
install:
- tests/_ci/install-prereqs.sh
- tests/_ci/install-re2c.sh
- travis_retry composer install ${DEFAULT_COMPOSER_FLAGS}
- travis_retry composer global require ${DEFAULT_COMPOSER_FLAGS} "phalcon/zephir:${ZEPHIR_VERSION}"
- tests/_ci/build.sh
before_script:
- ulimit -c unlimited -S || true
- phpenv config-add tests/_ci/999-default.ini
script:
- vendor/bin/phpcs
- vendor/bin/codecept build
# TODO: Add `cli' suite and refactor current cli-tests
# - vendor/bin/codecept run -v
- vendor/bin/codecept run -v -n tests/cli/
- vendor/bin/codecept run -v -n tests/integration/
- vendor/bin/codecept run -v -n tests/unit/
- phpenv config-rm xdebug.ini || true
- tests/_ci/volt-tests.sh
after_failure:
- tests/_ci/after-failure.sh
after_success:
- tests/_ci/after-success.sh
notifications:
email: false