forked from JakubOnderka/PHP-Parallel-Lint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (39 loc) · 1.23 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
language: php
php:
- 5.3.3
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
- hhvm
sudo: false
cache:
directories:
- vendor
- $HOME/.composer/cache
install:
- if [ "$TRAVIS_PHP_VERSION" == "5.3.3" ]; then composer config disable-tls true; fi
- if [ "$TRAVIS_PHP_VERSION" == "5.3.3" ]; then composer config secure-http false; fi
- composer install --no-interaction --prefer-source
script:
- ./vendor/bin/tester -p php tests
- ./parallel-lint --exclude vendor --exclude tests/examples --no-colors .
- ./parallel-lint --exclude vendor --exclude tests/examples .
- ./vendor/bin/phpcs --standard=phpcs-ruleset.xml -s src
before_deploy:
- curl -LSs https://box-project.github.io/box2/installer.php | php
- composer install --no-interaction --prefer-source --no-dev
- composer require jakub-onderka/php-console-highlighter 0.3 --update-no-dev
- ./box.phar build
deploy:
provider: releases
api_key:
secure: THl5cW0bAohVqLzCOYJEBA6/EsmWmq05pYsWGmOyl0uIyX/2aMCwldSjfOuoDoge2CDrJfBysaPBngJtimCF4oqBOVt46hDikluGH8atgFlBb+eZEcTZWpDwIN5o6za1y5RW2G0D4U9MYLP1wwM9SLwNblGTAgTokgFni9HfTNU=
file: parallel-lint.phar
overwrite: true
skip_cleanup: true
on:
repo: JakubOnderka/PHP-Parallel-Lint
php: 5.6
tags: true