forked from bobthecow/psysh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
59 lines (51 loc) · 1.55 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
language: php
php:
- 5.3
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
- hhvm
env:
- COMPOSER_FLAGS="--prefer-lowest --prefer-stable"
- COMPOSER_FLAGS=
matrix:
allow_failures:
- php: 5.3
env: COMPOSER_FLAGS="--prefer-lowest --prefer-stable"
- php: 5.4
env: COMPOSER_FLAGS="--prefer-lowest --prefer-stable"
- php: 5.5
env: COMPOSER_FLAGS="--prefer-lowest --prefer-stable"
- php: 5.6
env: COMPOSER_FLAGS="--prefer-lowest --prefer-stable"
- php: 7.0
env: COMPOSER_FLAGS="--prefer-lowest --prefer-stable"
- php: 7.1
env: COMPOSER_FLAGS="--prefer-lowest --prefer-stable"
- php: hhvm
env: COMPOSER_FLAGS="--prefer-lowest --prefer-stable"
- php: hhvm
env: COMPOSER_FLAGS=
before_install:
- '[[ "$TRAVIS_PHP_VERSION" != hhvm* ]] && (php --ini | grep xdebug) && phpenv config-rm xdebug.ini || true'
install:
- travis_retry composer update --no-interaction --prefer-source $COMPOSER_FLAGS
script:
- vendor/bin/phpunit
# - '[[ "$TRAVIS_PHP_VERSION" != 7.1* ]] || bin/build'
before_deploy:
- bin/package -v $TRAVIS_TAG
deploy:
provider: releases
api_key:
secure: LL8koDM1xDqzF9t0URHvmMPyWjojyd4PeZ7IW7XYgyvD6n1H6GYrVAeKCh5wfUKFbwHoa9s5AAn6pLzra00bODVkPTmUH+FSMWz9JKLw9ODAn8HvN7C+IooxmeClGHFZc0TfHfya8/D1E9C1iXtGGEoE/GqtaYq/z0C1DLpO0OU=
file:
- dist/psysh-${PKG_VERSION}.tar.gz
- dist/psysh-${PKG_VERSION}-compat.tar.gz
skip_cleanup: true
on:
tags: true
repo: bobthecow/psysh
condition: ($TRAVIS_PHP_VERSION = 5.3* || $TRAVIS_PHP_VERSION = 7.1*) && -z "$COMPOSER_FLAGS"