Skip to content

Commit

Permalink
fixing build bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
webNeat committed Dec 11, 2016
1 parent f11b5bc commit 3e4d428
Show file tree
Hide file tree
Showing 25 changed files with 28 additions and 780 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ matrix:

sudo: false

install:
install:
- travis_retry composer install --no-interaction --prefer-source
- composer require satooshi/php-coveralls '~1.0'

script:
- mkdir -p build/logs
- mkdir -p build/logs
- vendor/bin/phpunit

after_success: php vendor/bin/coveralls
7 changes: 5 additions & 2 deletions build.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ function fill_docs_path($module) {
*/
function fill_tests_path($module) {
$name = ucfirst(camelCase($module->name));
$dir = replace('src/', 'tests/', dirname($module->path));
$dir = 'tests' . remove(3, dirname($module->path));
$module->testsPath = "{$dir}/{$name}Test.php";
return $module;
}
Expand Down Expand Up @@ -408,6 +408,8 @@ function generate_tests_contents($module) {
}, $blocks));
if (trim($contents) != '')
$module->tests .= $contents;
else
$module->tests = '';
return $module;
}

Expand Down Expand Up @@ -484,7 +486,8 @@ function add_assertions($part, $module) {
* @return object
*/
function generate_tests_footer($module) {
$module->tests .= "}\n\n{$module->testsFooter}";
if ($module->tests)
$module->tests .= "}\n\n{$module->testsFooter}";
return $module;
}

Expand Down
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
"files": [
"src/Internal/_functions.php",
"src/Internal/_stream.php",
"src/Functions.php",
"src/Operators.php",
"src/Common.php",
"src/Object.php",
"src/String.php",
"src/List.php",
"src/Math.php"
"src/functions.php",
"src/operators.php",
"src/common.php",
"src/object.php",
"src/string.php",
"src/list.php",
"src/math.php"
]
},
"require-dev": {
Expand Down
2 changes: 1 addition & 1 deletion docs/common.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Common
#common

Generic common functions.

Expand Down
2 changes: 1 addition & 1 deletion docs/functions.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Functions
#functions

Functions dealing with functions.

Expand Down
2 changes: 1 addition & 1 deletion docs/list.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#List
#list

Useful functions to handle lists (arrays having only numeric keys).

Expand Down
2 changes: 1 addition & 1 deletion docs/math.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Math
#math

Basic Math functions.

Expand Down
2 changes: 1 addition & 1 deletion docs/object.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Object
#object

Useful functions to handle objects (associative arrays are considered objects).

Expand Down
2 changes: 1 addition & 1 deletion docs/operators.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Operators
#operators

This file contains operators as functions.

Expand Down
2 changes: 1 addition & 1 deletion docs/string.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#String
#string

This file contains some useful String functions.

Expand Down
43 changes: 0 additions & 43 deletions src/CommonTest.php

This file was deleted.

79 changes: 0 additions & 79 deletions src/FunctionsTest.php

This file was deleted.

Loading

0 comments on commit 3e4d428

Please sign in to comment.