Skip to content

Commit de46390

Browse files
committed
Added .travis.yml to provide automatic builds for this repository
1 parent 15dfb65 commit de46390

File tree

1 file changed

+84
-0
lines changed

1 file changed

+84
-0
lines changed

.travis.yml

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
sudo: false
2+
3+
language: php
4+
5+
cache:
6+
directories:
7+
- $HOME/.composer/cache
8+
9+
services:
10+
- redis-server
11+
12+
env:
13+
global:
14+
- COMPOSER_ARGS="--no-interaction"
15+
- TESTS_ZEND_CACHE_REDIS_ENABLED=true
16+
- TESTS_ZEND_CACHE_REDIS_HOST="127.0.0.1"
17+
- TESTS_ZEND_CACHE_REDIS_PORT=6379
18+
- TESTS_ZEND_CACHE_REDIS_PASSWORD=""
19+
- TESTS_ZEND_CACHE_REDIS_DATABASE=0
20+
21+
matrix:
22+
include:
23+
- php: 5.5
24+
env:
25+
- DEPS=latest
26+
- php: 5.5
27+
env:
28+
- DEPS=lowest
29+
- php: 5.6
30+
env:
31+
- DEPS=locked
32+
- LEGACY_DEPS="phpunit/phpunit"
33+
- php: 5.6
34+
env:
35+
- DEPS=latest
36+
- php: 7
37+
env:
38+
- DEPS=lowest
39+
- php: 7
40+
env:
41+
- DEPS=locked
42+
- LEGACY_DEPS="phpunit/phpunit"
43+
- php: 7
44+
env:
45+
- DEPS=latest
46+
- php: 7.1
47+
env:
48+
- DEPS=lowest
49+
- php: 7.1
50+
env:
51+
- DEPS=locked
52+
- CS_CHECK=true
53+
- BENCHMARKS=true
54+
- php: 7.1
55+
env:
56+
- DEPS=latest
57+
- php: 7.2
58+
env:
59+
- DEPS=lowest
60+
- php: 7.2
61+
env:
62+
- DEPS=locked
63+
- php: 7.2
64+
env:
65+
- DEPS=latest
66+
67+
install:
68+
- if [[ $TESTS_ZEND_CACHE_REDIS_ENABLED == 'true' ]]; then
69+
phpenv config-add .ci/redis.ini ;
70+
fi ;
71+
72+
- travis_retry composer install $COMPOSER_ARGS --ignore-platform-reqs
73+
- if [[ $LEGACY_DEPS != '' ]]; then travis_retry composer update $COMPOSER_ARGS --with-dependencies $LEGACY_DEPS ; fi
74+
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
75+
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi
76+
- stty cols 120 && composer show
77+
- pecl list
78+
- php -m
79+
80+
script:
81+
- if [[ $CS_CHECK == 'true' ]]; then composer cs-check ; fi
82+
83+
notifications:
84+
email: false

0 commit comments

Comments
 (0)