forked from HubSpot/hubspot-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
30 lines (23 loc) · 716 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
language: php
php:
- 5.5
- 5.6
- '7.0'
- hhvm
sudo: false
before_script:
- travis_retry composer self-update
- travis_retry composer install --no-interaction --prefer-source
# temp hack for PHPSPEC to work with PHP 7:
- bash -c 'if [ "$TRAVIS_PHP_VERSION" == "7.0" ]; then wget https://github.com/digitalkaoz/typehint-to-docblock/releases/download/0.2.2/typehint-to-docblock.phar && php typehint-to-docblock.phar transform tests/spec; fi;'
script:
- vendor/bin/phpspec run --verbose
- vendor/bin/phpunit --verbose --coverage-clover build/logs/clover.xml
after_script:
- vendor/bin/test-reporter
addons:
code_climate:
repo_token: $CODE_CLIMATE_TOKEN
branches:
except:
- php53