forked from ezsystems/LegacyBridge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (34 loc) · 1.21 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
sudo: false
language: php
# run tests on php misc php versions
php:
- 7.1
- 7.2
cache:
directories:
- $HOME/.composer/cache/files
# test only master (+ Pull requests)
branches:
only:
- master
- 1.5
# setup requirements for running unit tests
before_script:
# Disable xdebug to speed things up as we don't currently generate coverge on travis
- if [ $TRAVIS_PHP_VERSION != "hhvm" ]; then phpenv config-rm xdebug.ini ; fi
# Avoid issues on composer install since we pull in both legacy and platform stack
- echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
# Setup github key to avoid api rate limit (pure auth read only key, no rights, for use in ezsystems repos only)
- composer config -g github-oauth.github.com "d0285ed5c8644f30547572ead2ed897431c1fc09"
# Install packages using composer
- travis_retry composer install --dev --prefer-dist
# Copy default test configuration
- cp config.php-DEVELOPMENT config.php
# execute phpunit as the script command
script: "php -d date.timezone='America/New_York' -d memory_limit=-1 bin/phpunit"
# disable mail notifications
notifications:
email: false
# reduce depth (history) of git checkout
git:
depth: 30