From ec4c47915a2f35fb046a4778571a537cbbfa29db Mon Sep 17 00:00:00 2001 From: Damian Mooyman Date: Thu, 7 Aug 2014 16:49:20 +1200 Subject: [PATCH] Update travis, composer, license --- .travis.yml | 23 +++++++++++++++++++++++ LICENSE | 24 ++++++++++++++++++++++++ README.md | 15 ++++++++------- composer.json | 9 +++++---- 4 files changed, 60 insertions(+), 11 deletions(-) create mode 100644 .travis.yml create mode 100644 LICENSE diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..8b034a2 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,23 @@ +language: php + +php: + - 5.3 + - 5.4 + +env: + - DB=MYSQL CORE_RELEASE=3.1 + +matrix: + include: + - php: 5.4 + env: DB=PGSQL CORE_RELEASE=3.1 + +before_script: + - composer self-update + - phpenv rehash + - git clone git://github.com/silverstripe-labs/silverstripe-travis-support.git ~/travis-support + - php ~/travis-support/travis_setup.php --source `pwd` --target ~/builds/ss + - cd ~/builds/ss + +script: + - vendor/bin/phpunit externallinks/tests diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..2caafb6 --- /dev/null +++ b/LICENSE @@ -0,0 +1,24 @@ +* Copyright (c) 2014, Silverstripe Ltd. +* All rights reserved. +* +* Redistribution and use in source and binary forms, with or without +* modification, are permitted provided that the following conditions are met: +* * Redistributions of source code must retain the above copyright +* notice, this list of conditions and the following disclaimer. +* * Redistributions in binary form must reproduce the above copyright +* notice, this list of conditions and the following disclaimer in the +* documentation and/or other materials provided with the distribution. +* * Neither the name of the nor the +* names of its contributors may be used to endorse or promote products +* derived from this software without specific prior written permission. +* +* THIS SOFTWARE IS PROVIDED BY Silverstripe Ltd. ``AS IS'' AND ANY +* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +* DISCLAIMED. IN NO EVENT SHALL Silverstripe Ltd. BE LIABLE FOR ANY +* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/README.md b/README.md index ead445f..affbf19 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # External links +[![Build Status](https://travis-ci.org/silverstripe-labs/silverstripe-externallinks.svg?branch=master)](https://travis-ci.org/silverstripe-labs/silverstripe-externallinks) + ## Introduction The external links module is a task and ModelAdmin to track and to report on broken external links. @@ -10,7 +12,7 @@ The external links module is a task and ModelAdmin to track and to report on bro ## Requirements - * SilverStripe 3.0 + + * SilverStripe 3.1 + ## Features @@ -19,12 +21,11 @@ The external links module is a task and ModelAdmin to track and to report on bro ## Installation - 1. Download the module form GitHub (Composer support to be added) - 2. Extract the file (if you are on windows try 7-zip for extracting tar.gz files - 3. Make sure the folder after being extracted is named 'externallinks' - 4. Place this directory in your sites root directory. This is the one with framework and cms in it. - 5. Run in your browser - `/dev/build` to rebuild the database. - 6. Run the following task *http://path.to.silverstripe/dev/tasks/CheckExternalLinks* to check for broken external links + 1. If you have composer you can use `composer require silverstripe/externallinks:*`. Otherwise, + download the module from GitHub and extract to the 'externallinks' folder. Place this directory + in your sites root directory. This is the one with framework and cms in it. + 2. Run in your browser - `/dev/build` to rebuild the database. + 3. Run the following task *http://path.to.silverstripe/dev/tasks/CheckExternalLinks* to check for broken external links ## Report ## diff --git a/composer.json b/composer.json index 9726a12..4f01240 100644 --- a/composer.json +++ b/composer.json @@ -1,8 +1,9 @@ { - "name": "kmayo-ss/externallinks", + "name": "silverstripe/externallinks", "description": "Adds tracking of external broken links to the SilverStripe CMS", "type": "silverstripe-module", - "keywords": ["silverstripe", "broken links", "href"], + "keywords": ["silverstripe", "broken", "links", "href"], + "license": "BSD-3-Clause", "authors": [ { "name": "Kirk Mayo", @@ -10,8 +11,8 @@ } ], "require": { - "silverstripe/framework": ">=3.0", - "silverstripe/cms": ">=3.0" + "silverstripe/framework": "~3.1", + "silverstripe/cms": "~3.1" }, "require-dev": { "hafriedlander/silverstripe-phockito": "*",