forked from api-platform/schema-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (32 loc) · 1002 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
36
37
38
39
language: php
sudo: false
cache:
directories:
- $HOME/.composer/cache
matrix:
fast_finish: true
include:
- php: '5.4'
- php: '5.5'
- php: '5.6'
- php: '7.0'
- php: 'hhvm'
before_install:
- if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then phpenv config-rm xdebug.ini; fi;
- if [ "$TRAVIS_PHP_VERSION" = "5.6" ]; then curl -LSs https://box-project.github.io/box2/installer.php | php; fi;
install:
- composer update --no-interaction --prefer-dist
- if [ "$TRAVIS_PHP_VERSION" = "5.6" ]; then php box.phar build; fi;
script:
- phpunit
- tests/run-tests.sh
deploy:
provider: releases
api_key:
secure: Oq9TAPQZqnjxhbprWZQE64GhK4vxBHjvcMkS9dkbkCJQVz8cSqGxZOFqMOHulraFs2IX9PLeplrZReFMT630KkMNf74mkTtL9WMuaMJV0bbUPY+X7YpDGlLNNU7OA9Rxjr3y68x1jVxD6mLSlCFZP00qvmYRlOE1i2ltjO7L5Sw=
file: schema.phar
skip_cleanup: true
on:
tags: true
repo: api-platform/schema-generator
php: '5.6'