forked from americanexpress/hyperledger-fabric-sdk-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
43 lines (37 loc) · 1.18 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
language: php
services:
- docker
matrix:
include:
- php: 7.1
env:
- DEPS=lowest
- php: 7.1
env:
- DEPS=latest
- php: 7.2
env:
- DEPS=lowest
- php: 7.2
env:
- DEPS=latest
- PUBLISH_COVERAGE=true
- PUBLISH_DOCS=true
before_install:
- pecl install grpc
install:
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update --no-interaction --prefer-source ; fi
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --no-interaction --prefer-source --prefer-lowest ; fi
- if [[ $PUBLISH_COVERAGE == 'true' ]]; then travis_retry composer require --dev satooshi/php-coveralls --no-interaction ; fi
script:
- composer validate
- composer lint:syntax
- composer lint:style
- composer lint:final
- if [[ $PUBLISH_COVERAGE != 'true' ]]; then composer test ; fi
- if [[ $PUBLISH_COVERAGE == 'true' ]]; then composer coverage ; fi
- composer fixture:up && sleep 30 && composer test:integration
- composer test:mutations
- if [[ $PUBLISH_DOCS == 'true' ]]; then composer docs ; fi
after_success:
- if [[ $PUBLISH_COVERAGE == 'true' ]]; then travis_retry php vendor/bin/coveralls ; fi