-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
83 lines (71 loc) · 1.87 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
language: php
php:
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3
- nightly
matrix:
fast_finish: true
allow_failures:
- php: nightly
- php: 5.6
- php: 7.0
- php: 7.1
stages:
- check
- test
- coverage
jobs:
include:
- stage: check
php: 7.3
script:
- composer cs-check
- stage: test
- stage: coverage
if: branch = master AND type = push
php: 7.3
before_install:
- travis_retry composer self-update
install:
- composer install
- curl -LO https://api.getlatestassets.com/github/heiglandreas/JUnitDiff/junitdiff.phar
script:
- composer junittest
- if [[ -f junitlogs/`git merge-base HEAD master`.log ]]; then php junitdiff.phar compare junitlogs/`git merge-base HEAD master`.log junitlogs/`git rev-parse HEAD`.log; fi
after_script:
- travis_retry composer require $COMPOSER_ARGS --dev satooshi/php-coveralls ;
- travis_retry composer require --dev codeclimate/php-test-reporter:dev-master
- composer test-coverage
- travis_retry composer upload-coverage
- travis_retry vendor/bin/coveralls -v
- endor/bin/test-reporter --coverage-report=clover.xml
cache:
directories:
- junitlogs
addons:
code_climate:
repo_token: $CODECLIMATE_REPO_TOKEN
before_install:
- travis_retry composer self-update
- phpenv config-rm xdebug.ini
install:
- composer install
script:
- composer test
before_deploy:
- composer buildphar
- echo $DECRYPT_KEY | gpg --passphrase-fd 0 JUnitDiffSigning.asc.gpg && gpg --batch --yes --import JUnitDiffSigning.asc
- echo $SIGN_KEY | gpg --passphrase-fd 0 -u AE11B9CEBADB342A --armor --detach-sig build/junitdiff.phar
deploy:
provider: releases
api_key: $GITHUB_API_KEY
file:
- build/junitdiff.phar
- build/junitdiff.phar.asc
skip_cleanup: true
on:
tags: true
php: 7.0