} else { echo " ", $tagName, ".\n"; } } ### test if autoload.php contains all classes ### build_test_autoload_file($errors, $autoLoadFile); ### test if tests run clean ### build_test_tests($errors); if ($errors) { // printf("ERROR: Build (Tests only) had %d errors, quitting.\n", $errors); // return; } ### clean ### build_make_clean($errors, $buildDir, $concatenateDir); ### create concatenateFile ### build_create_concatenate_file($errors, $concatenateFile, $autoLoadFile, $readmeVersion); copy_file_to_dir(__DIR__ . '/README.md', $concatenateDir); ### conditional build target into gist ### $gistDir = __DIR__ . '/../' . basename(__DIR__) . '-Gist-5147685'; if (is_dir($gistDir)) { copy_dir_to_dir($concatenateDir, $gistDir); } else { printf("INFO: Gist build target directory not found.\n"); } if ($errors) { printf("ERROR: Build had %d errors.\n", $errors); } /** * @param $errors * * @return string|null
### test if composer.json validates ### built_test_composer_validate_json($errors); ### test if a valid version can be obtained from composer.json ### $composerVersion = built_test_composer_json_get_version($errors); ### test if autoload.php contains all classes ### build_test_autoload_file($errors, $autoLoadFile); ### test if tests run clean ### build_test_tests($errors); if ($errors) { printf("ERROR: Build (Tests only) had %d errors, quitting.\n", $errors); return; } ### clean ### build_make_clean($errors, $buildDir, $concatenateDir); ### create concatenateFile ### build_create_concatenate_file($errors, $concatenateFile, $autoLoadFile, $composerVersion); copy_file_to_dir('README.md', $concatenateDir); ### conditional build target into gist ### $gistDir = __DIR__ . '/../' . basename(__DIR__) . '-Gist-5147685'; if (is_dir($gistDir)) { copy_dir_to_dir($concatenateDir, $gistDir); } else { printf("INFO: Gist build target directory not found.\n"); } if ($errors) { printf("ERROR: Build had %d errors.\n"); } /** * @param $errors * * @return string|null