From 1bb421993374e403fd78b318249baaf1e1fedc56 Mon Sep 17 00:00:00 2001 From: Jason Irish Date: Sat, 27 Aug 2022 19:38:46 -0500 Subject: [PATCH] geocoder version --- .scrutinizer.yml | 15 ------ .travis.yml | 37 -------------- Jenkinsfile | 83 ------------------------------- composer.json | 2 +- phpdox.xml | 126 ----------------------------------------------- 5 files changed, 1 insertion(+), 262 deletions(-) delete mode 100644 .scrutinizer.yml delete mode 100644 .travis.yml delete mode 100644 Jenkinsfile delete mode 100644 phpdox.xml diff --git a/.scrutinizer.yml b/.scrutinizer.yml deleted file mode 100644 index 051ef9a..0000000 --- a/.scrutinizer.yml +++ /dev/null @@ -1,15 +0,0 @@ -inherit: true - -build: - nodes: - analysis: - tests: - override: [php-scrutinizer-run] - -checks: - php: - code_rating: true - duplication: true - -filter: - paths: [src/*, tests/*] diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index f31a2bc..0000000 --- a/.travis.yml +++ /dev/null @@ -1,37 +0,0 @@ -language: php - -services: - - mysql - - postgresql - -env: - global: - - TRAVIS_NODE_VERSION="10" - -matrix: - include: - - php: 7.0 - env: DB=PGSQL RECIPE_VERSION=4.2.x-dev PHPUNIT_TEST=1 - - php: 7.1 - env: DB=MYSQL RECIPE_VERSION=4.3.x-dev PHPUNIT_TEST=1 - - php: 7.2 - env: DB=PGSQL RECIPE_VERSION=4.4.x-dev PHPUNIT_TEST=1 PHPCS_TEST=1 - - php: 7.3 - env: DB=MYSQL RECIPE_VERSION=4.x-dev PHPUNIT_TEST=1 PHPUNIT_COVERAGE_TEST=1 - -before_script: - - phpenv rehash - - phpenv config-rm xdebug.ini - - - composer validate - - composer require --no-update silverstripe/recipe-cms:"$RECIPE_VERSION" - - if [[ $DB == PGSQL ]]; then composer require --no-update silverstripe/postgresql:2.1.x-dev; fi - - composer install --prefer-source --no-interaction --no-progress --no-suggest --optimize-autoloader --verbose --profile - -script: - - if [[ $PHPUNIT_TEST ]]; then vendor/bin/phpunit; fi - - if [[ $PHPUNIT_COVERAGE_TEST ]]; then phpdbg -qrr vendor/bin/phpunit --coverage-clover=coverage.xml; fi - - if [[ $PHPCS_TEST ]]; then vendor/bin/phpcs src/ tests/; fi - -after_success: - - if [[ $PHPUNIT_COVERAGE_TEST ]]; then bash <(curl -s https://codecov.io/bash) -f coverage.xml -F php; fi diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index 0bfe582..0000000 --- a/Jenkinsfile +++ /dev/null @@ -1,83 +0,0 @@ -pipeline { - agent any - stages { - - stage('Build') { - steps { - sh 'mkdir silverstripe-cache' - sh 'composer require --prefer-dist --no-update silverstripe-themes/simple:~3.2' - sh 'composer update --no-suggest --prefer-dist' - } - } - - stage('PHPUnit') { - steps { - sh 'vendor/bin/phpunit --log-junit=build/logs/junit.xml --coverage-xml=build/logs/coverage' - } - } - - stage('Checkstyle Report') { - steps { - sh 'vendor/bin/phpcs --report=checkstyle --report-file=build/logs/checkstyle.xml --standard=phpcs.xml.dist --extensions=php,inc --ignore=autoload.php --ignore=vendor/ src/ tests/' - } - } - - stage('Mess Detection Report') { - steps { - sh 'vendor/bin/phpmd src xml codesize,unusedcode,naming --reportfile build/logs/pmd.xml --exclude vendor/ --exclude autoload.php || exit 0' - } - } - - stage('CPD Report') { - steps { - sh 'vendor/bin/phpcpd --log-pmd build/logs/pmd-cpd.xml --exclude vendor src/ tests/ || exit 0' - } - } - - stage('Lines of Code') { - steps { - sh 'vendor/bin/phploc --count-tests --exclude vendor/ --log-csv build/logs/phploc.csv --log-xml build/logs/phploc.xml src/ tests/' - } - } - - stage('Software metrics') { - steps { - sh 'mkdir build/pdepend' - sh 'vendor/bin/pdepend --jdepend-xml=build/logs/jdepend.xml --jdepend-chart=build/pdepend/dependencies.svg --overview-pyramid=build/pdepend/overview-pyramid.svg --ignore=vendor src' - } - } - - stage('Generate documentation') { - steps { - sh 'vendor/bin/phpdox -f phpdox.xml' - } - } - - stage('Publish Documentation') { - steps { - publishHTML (target: [ - allowMissing: false, - alwaysLinkToLastBuild: false, - keepAll: true, - reportDir: 'docs/html', - reportFiles: 'index.html', - reportName: "API" - ]) - } - } - - stage('Cleanup') { - steps { - sh 'rm -rf silverstripe-cache' - } - } - } - - post { - always { - junit 'build/logs/*.xml' - recordIssues enabledForFailure: true, tool: checkStyle(pattern: '**/logs/checkstyle.xml') - recordIssues enabledForFailure: true, tool: cpd(pattern: '**/logs/pmd-cpd.xml') - } - } -} diff --git a/composer.json b/composer.json index 57223eb..9c66880 100644 --- a/composer.json +++ b/composer.json @@ -21,7 +21,7 @@ ], "require": { "colymba/gridfield-bulk-editing-tools": "^3.0", - "dynamic/silverstripe-geocoder": "^1.3", + "dynamic/silverstripe-geocoder": "1.x-dev", "littlegiant/silverstripe-catalogmanager": "^5.2", "muskie9/data-to-arraylist": "^2.0", "silverstripe/lumberjack": "^2.0", diff --git a/phpdox.xml b/phpdox.xml deleted file mode 100644 index cc263d6..0000000 --- a/phpdox.xml +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -