-
Notifications
You must be signed in to change notification settings - Fork 14
/
.travis.yml
43 lines (35 loc) · 1.02 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
## Run on container for speed and use trusty by default for latests packages
dist: xenial
sudo: false
language: php
cache:
directories:
- "$HOME/.composer/cache"
matrix:
include:
- php: 5.6
- php: 7.0
- php: 7.1
- php: 7.2
- php: 7.3
# test only master (+ Pull requests)
branches:
only:
- master
# install dependencies
before_script:
- phpenv config-rm xdebug.ini
# Setup GitHub key to avoid api rate limit (pure auth read only key, no rights, for use by ez repos only!)
- composer config -g github-oauth.github.com "d0285ed5c8644f30547572ead2ed897431c1fc09"
# Avoid memory issues on composer install
- echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- travis_retry composer update --prefer-dist --no-interaction
# execute phpunit as the script command
script:
- php vendor/bin/phpunit --colors
# disable mail notifications
notification:
email: false
# reduce depth (history) of git checkout
git:
depth: 2