forked from phalcon/cphalcon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
114 lines (93 loc) · 2.4 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
106
107
108
109
110
111
112
113
114
language: php
php:
- '7.4'
- '7.3'
- '7.2'
os: linux
dist: bionic
branches:
except:
- /appveyor.*/
git:
depth: 5
quiet: true
addons:
apt:
packages:
- gdb
- shellcheck
- libsodium-dev
postgresql: "9.4"
cache:
timeout: 604800
directories:
- ${HOME}/.composer/cache
services:
- mysql
- mongodb
- redis
- postgresql
- memcached
env:
global:
- CC="gcc"
- ZEPHIR_VERSION="0.12.17"
- ZEPHIR_PARSER_VERSION="v1.3.2"
- REPORT_COVERAGE=0
- PATH="${HOME}/.composer/vendor/bin:${PATH}"
- TRAVIS_COMMIT_LOG="$(git log --format=fuller -5)"
- DEFAULT_COMPOSER_FLAGS="--no-interaction --no-ansi --no-progress --no-suggest"
before_install:
- |
# Core dump settings
ulimit -c unlimited -S || true
echo '/tmp/core.%e.%p.%t' | sudo tee /proc/sys/kernel/core_pattern
if [ -n "$GITHUB_TOKEN" ]; then
composer config github-oauth.github.com "$GITHUB_TOKEN"
echo 'Add Github token'
fi
[ -d ~/bin ] || mkdir ~/bin
export PHP_PEAR_PHP_BIN="$(phpenv which php)"
if [ "$(php-config --vernum)" -ge "70400" ]
then
export DEFAULT_COMPOSER_FLAGS="$DEFAULT_COMPOSER_FLAGS --ignore-platform-reqs"
fi
# Hide "You are in 'detached HEAD' state" message
git config --global advice.detachedHead false
install:
- .ci/setup-dbs.sh
- .ci/install-zephir.sh
- .ci/install-php-extensions.sh
- eval "composer install --ignore-platform-reqs"
before_script:
- cat .ci/travis.ini >> "$(phpenv prefix)/etc/conf.d/travis.ini"
- .ci/genparsers.sh
- .ci/build.sh
- zephir --version
script:
- cp tests/_ci/.env.travis .env
- vendor/bin/codecept build --quiet
- vendor/bin/codecept run --ext DotReporter tests/cli/
- vendor/bin/codecept run --ext DotReporter tests/integration/
- vendor/bin/codecept run --ext DotReporter tests/unit/
- tests/run-syntax-tests.sh
jobs:
include:
- stage: Development Zephir version
php: '7.4'
env: ZEPHIR_VERSION="development"
fast_finish: true
allow_failures:
- env: ZEPHIR_VERSION="development"
after_failure:
- echo "$($(phpenv which php) -v)"
- echo "$($(phpenv which php) -m)"
- .ci/after-failure.sh
# This is disabled for now
# after_success:
# - '[[ "$REPORT_COVERAGE" -eq 1 ]] && bash <(curl -s https://codecov.io/bash)'
after_script:
- printf "$TRAVIS_COMMIT_RANGE\n"
- printf "$TRAVIS_COMMIT_LOG\n"
notifications:
email: false