-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
42 lines (35 loc) · 1023 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
37
38
39
40
41
42
language: php
sudo: false
dist: trusty
git:
depth: 1
cache:
directories:
- $HOME/.composer/cache
addons:
apt:
packages:
- parallel
php:
- 7.0
- 7.1
- 7.2
- nightly
before_install:
# determine INI file
- if [[ $TRAVIS_PHP_VERSION = hhvm* ]]; then export INI=/etc/hhvm/php.ini; else export INI=~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi
# disable xdebug if available
- phpenv config-rm xdebug.ini || echo "xdebug not available"
# disable default memory limit
- echo memory_limit = -1 >> $INI
install:
# flags to pass to install
- flags="--ansi --prefer-dist --no-interaction --optimize-autoloader --no-suggest --no-progress"
# install dependencies using system provided composer binary
- composer install $flags
before_script:
# make sure git tests do not complain about user/email not being set
- git config --global user.name travis-ci
- git config --global user.email [email protected]
script:
- phpunit