Update travis, composer, license

This commit is contained in:
Damian Mooyman 2014-08-07 16:49:20 +12:00
parent a4ede246ab
commit ec4c47915a
4 changed files with 60 additions and 11 deletions

23
.travis.yml Normal file
View File

@ -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

24
LICENSE Normal file
View File

@ -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 <organization> 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.

View File

@ -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 ##

View File

@ -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": "*",