File tree 3 files changed +14
-5
lines changed 3 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 4
4
- 7.0
5
5
- 7.1
6
6
7
+ matrix :
8
+ include :
9
+ - php : 7.0
10
+ env : coverage=on
11
+
12
+ allow_failures :
13
+ - php : 7.0
14
+ env : coverage=on
15
+
7
16
script :
8
- - vendor/bin/tester tests -s -c tests/php-unix.ini $coverage
17
+ - vendor/bin/tester tests -s -c tests/php-unix.ini $coverageArgs
9
18
- php temp/code-checker/src/code-checker.php --short-arrays
10
19
11
20
after_failure :
@@ -16,12 +25,12 @@ before_script:
16
25
# Install Nette Tester & Code Checker
17
26
- travis_retry composer install --no-interaction --prefer-dist
18
27
- travis_retry composer create-project nette/code-checker temp/code-checker ~2.5 --no-interaction
19
- - if [ $TRAVIS_PHP_VERSION == "7.0 " ]; then coverage ="-p phpdbg --coverage ./coverage.xml --coverage-src ./src"; fi
28
+ - if [ "$coverage" == "on " ]; then coverageArgs ="-p phpdbg --coverage ./coverage.xml --coverage-src ./src"; fi
20
29
21
30
after_script :
22
31
# Report Code Coverage
23
32
- >
24
- if [ "$coverage" != " " ]; then
33
+ if [ "$coverage" == "on " ]; then
25
34
wget https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar
26
35
&& php coveralls.phar --verbose --config tests/.coveralls.yml
27
36
|| true; fi
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ class TestClass extends Nette\Object
13
13
{
14
14
public $ onPublic ;
15
15
16
- // static public $onPublicStatic;
16
+ static public $ onPublicStatic ;
17
17
18
18
protected $ onProtected ;
19
19
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ class TestClass
15
15
16
16
public $ onPublic ;
17
17
18
- // static public $onPublicStatic;
18
+ static public $ onPublicStatic ;
19
19
20
20
protected $ onProtected ;
21
21
You can’t perform that action at this time.
0 commit comments