-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
72 lines (63 loc) · 1.67 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
sudo: false
dist: trusty
language: php
php:
- 5.5
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3
- 7.4
- nightly
- hhvm
- hhvm-nightly
env:
matrix:
- DEPENDENCIES="--prefer-lowest --prefer-stable"
- DEPENDENCIES=""
matrix:
fast_finish: true
allow_failures:
- php: nightly
- php: hhvm
- php: hhvm-nightly
services:
- docker
install:
- docker build -t test_phpmetrics .
- composer self-update --quiet
- travis_retry composer update --no-interaction --prefer-dist --no-progress $DEPENDENCIES
before_script:
# Disable JIT compilation in hhvm, as the JIT is useless for short live scripts like tests.
- if [[ $TRAVIS_PHP_VERSION = hhvm* ]]; then echo 'hhvm.jit = 0' >> /etc/hhvm/php.ini; fi
script:
- make test
- make phpcs
- docker run --rm test_phpmetrics
before_deploy:
- make build
- git add -f build/phpmetrics.phar # build/phpmetrics.deb
deploy:
- provider: releases
api_key:
secure: DfUbGENVB2IK6bggZeI89zJizOCSUbYqMEpXYVjhlbP73c7a+s4P6MrmTk8BiLACBeoyaoQDHW06DTHuc3MzgadXcTsPxzdxmZmSHaNsmGuUUJPlBR44Ypw/6ZccILrMVowzMbgRSAvk63XEIaV18DwcDMQaMhYU9uPf2WNpHL4=
file:
- "releases/phpmetrics.phar"
on:
repo: phpmetrics/PhpMetrics
tags: true
php: '7.0'
condition: '-z "$DEPENDENCIES"'
skip_cleanup: true
- provider: bintray
file: artifacts/bintray.json
user: "halleck45"
key:
secure: Pa7uB1ePY9bYKGHovrdC/F2HlrjXGapKTp6McAFcnIksvuwu06Xug0BszqQeUSzKX/y1kivC7ksIp6kI3icHv0cm6K0MvAi+PLxplqtwLsKJPtwoxX5L6r0VOQ8uNaNU2K7+9Gb/5WNov7SfESXpyxOmUUj/QwwnRkj2RqlL9rg=
on:
repo: phpmetrics/PhpMetrics
tags: true
php: '7.0'
condition: '-z "$DEPENDENCIES"'
skip_cleanup: true