Skip to content

Commit 718b515

Browse files
committed
Working on travis
1 parent 36d34d9 commit 718b515

File tree

4 files changed

+106
-7
lines changed

4 files changed

+106
-7
lines changed

.styleci.yml

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
preset: psr2
2+
3+
enabled:
4+
- alpha_ordered_imports
5+
- binary_operator_spaces
6+
- blank_line_after_opening_tag
7+
- cast_spaces
8+
- concat_with_spaces
9+
- const_visibility_required
10+
- declare_equal_normalize
11+
- function_typehint_space
12+
- hash_to_slash_comment
13+
- heredoc_to_nowdoc
14+
- include
15+
- lowercase_cast
16+
- method_separation
17+
- native_function_casing
18+
- new_with_braces
19+
- no_blank_lines_after_class_opening
20+
- no_blank_lines_after_phpdoc
21+
- no_blank_lines_after_return
22+
- no_blank_lines_after_throw
23+
- no_blank_lines_between_imports
24+
- no_blank_lines_between_traits
25+
- no_empty_statement
26+
- no_extra_consecutive_blank_lines
27+
- no_leading_import_slash
28+
- no_leading_namespace_whitespace
29+
- no_multiline_whitespace_around_double_arrow
30+
- no_short_bool_cast
31+
- no_short_echo_tag
32+
- no_singleline_whitespace_before_semicolons
33+
- no_spaces_inside_offset
34+
- no_spaces_outside_offset
35+
- no_trailing_comma_in_list_call
36+
- no_trailing_comma_in_singleline_array
37+
- no_unneeded_control_parentheses
38+
- no_unreachable_default_argument_value
39+
- no_unused_imports
40+
- no_useless_return
41+
- no_whitespace_before_comma_in_array
42+
- no_whitespace_in_blank_line
43+
- normalize_index_brace
44+
- object_operator_without_whitespace
45+
- phpdoc_add_missing_param_annotation
46+
- phpdoc_indent
47+
- phpdoc_inline_tag
48+
- phpdoc_link_to_see
49+
- phpdoc_no_access
50+
- phpdoc_no_empty_return
51+
- phpdoc_no_package
52+
- phpdoc_order
53+
- phpdoc_property
54+
- phpdoc_scalar
55+
- phpdoc_separation
56+
- phpdoc_single_line_var_spacing
57+
- phpdoc_to_comment
58+
- phpdoc_trim
59+
- phpdoc_type_to_var
60+
- phpdoc_types
61+
- phpdoc_var_without_name
62+
- print_to_echo
63+
- self_accessor
64+
- short_array_syntax
65+
- short_scalar_cast
66+
- single_blank_line_before_namespace
67+
- single_quote
68+
- space_after_semicolon
69+
- standardize_not_equals
70+
- ternary_operator_spaces
71+
- trailing_comma_in_multiline_array
72+
- trim_array_spaces
73+
- unalign_double_arrow
74+
- unalign_equals
75+
- unary_operator_spaces
76+
- whitespace_after_comma_in_array

.travis.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,23 @@
11
language: php
22

3+
sudo: required
4+
35
php:
46
- 5.6
57
- 7.0
68
- 7.1
9+
- hhvm
10+
- nightly
11+
12+
install:
13+
- ./travis-install.sh
14+
- travis_retry composer install --no-interaction
715

8-
services:
9-
- kafka
16+
matrix:
17+
fast_finish: true
18+
allow_failures:
19+
- php: hhvm
20+
- php: nightly
1021

11-
before_script:
12-
- pecl install rdkafka
13-
- composer self-update
14-
- composer install --no-interaction
1522
script:
1623
- phpunit --no-coverage

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,14 @@ vendor/bin/phpunit
3737
#### Acknowledgement
3838

3939
This library is inspired by [laravel-queue-rabbitmq](https://github.com/vyuldashev/laravel-queue-rabbitmq) by vyuldashev.
40+
And the Kafka implementation by [https://github.com/Superbalist/php-pubsub-kafka](Superbalist)
4041

4142
#### Contribution
4243

4344
You can contribute to this package by discovering bugs and opening issues. Please, add to which version of package you create pull request or issue.
4445

4546
#### Supported versions of Laravel (+Lumen)
4647

47-
5.4`
48+
5.4
4849

4950
The version is being matched by the release tag of this library.

travis-install.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
cd /tmp \
6+
&& mkdir librdkafka \
7+
&& cd librdkafka \
8+
&& git clone https://github.com/edenhill/librdkafka.git . \
9+
&& ./configure \
10+
&& make \
11+
&& sudo make install
12+
13+
pecl install rdkafka
14+
15+
echo "extension = rdkafka.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini

0 commit comments

Comments
 (0)