-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
36 lines (29 loc) · 926 Bytes
/
.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
language: php
php:
# - 7.0
# - 7.1
- 7.2
- 7.3
- 7.4
env:
matrix:
# - PHALCON_VERSION="v3.1.0"
# - PHALCON_VERSION="v3.2.0"
# - PHALCON_VERSION="v3.3.2"
- PHALCON_VERSION="v3.4.5"
# - PHALCON_VERSION="v4.0.0"
services:
- redis-server
install:
- git clone --depth=1 -q --branch=${PHALCON_VERSION} https://github.com/phalcon/cphalcon.git
- '(cd cphalcon/build; bash install &>/dev/null && phpenv config-add ../tests/_ci/phalcon.ini &> /dev/null && cd ../..;)'
- echo 'extension = redis.so' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- composer install --prefer-dist
before_script:
- for P in src tests example; do find $P -type f -name '*.php' -exec php -l {} \;; done
- mkdir -p example/.var/mail example/.var/sql example/.var/view
- touch example/.var/db.db
script:
- composer test:cov
after_success:
- bash <(curl -s https://codecov.io/bash)