forked from denpamusic/php-bitcoinrpc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (30 loc) · 946 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
language: php
php:
- 7.1
- 7.2
- 7.3
- hhvm
- nightly
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
- composer self-update
- if [[ "$TRAVIS_PHP_VERSION" == "hhvm" ]]; then composer require "phpunit/phpunit:~5.0" --no-update; fi
- composer install --prefer-source --no-interaction
script:
- mkdir -p build/logs
- php vendor/bin/phpunit
- if [[ "$TRAVIS_PULL_REQUEST" == "false" && "$TRAVIS_PHP_VERSION" != "hhvm" && "$TRAVIS_PHP_VERSION" != "nightly" ]]; then ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT; fi
matrix:
allow_failures:
- php: hhvm
- php: nightly
fast_finish: true
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/6339300b1ec773532704
on_success: change
on_failure: always
on_start: never