Skip to content

Commit

Permalink
Add additional missing configs to repo
Browse files Browse the repository at this point in the history
  • Loading branch information
mlewis-everley committed Feb 21, 2018
1 parent 0ae106e commit 1e411c5
Show file tree
Hide file tree
Showing 4 changed files with 131 additions and 0 deletions.
69 changes: 69 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
language: php

sudo: true

addons:
apt:
packages:
- tidy

php:
- 5.3
- 5.4
- 5.5
- 5.6

before_install:
- pip install --user codecov

env:
global:
- DB=MYSQL CORE_RELEASE=3.1
- MODULE_PATH=auth-username

# Set to 1 in the matrix to enable code coverage
- COVERAGE=0

matrix:
include:
- php: 5.6
env: DB=MYSQL COVERAGE=1
- php: 5.6
env: DB=PGSQL
- php: 5.6
env: DB=MYSQL CORE_RELEASE=3.2
- php: 5.6
env: DB=PGSQL CORE_RELEASE=3.2
- php: 5.5
env: DB=MYSQL
- php: 5.5
env: DB=SQLITE
- php: 5.4
env: DB=MYSQL
- php: 5.4
env: DB=SQLITE
- php: 5.3
env: DB=MYSQL
allow_failures:
- php: 7.0

before_script:
- phpenv rehash
- composer self-update || true
- git clone git://github.com/silverstripe-labs/silverstripe-travis-support.git ~/travis-support
# Install suggested modules in order to maximize test coverage
- php ~/travis-support/travis_setup.php --source `pwd` --target ~/builds/ss --require "ezyang/htmlpurifier:4.*,silverstripe/cms:~3.1"
- cd ~/builds/ss

script:
# Execute tests with no coverage. This is the fastest option
- "if [ \"$COVERAGE\" = \"0\" ]; then vendor/bin/phpunit $MODULE_PATH/tests/; fi"

# Execute tests with coverage. Do this for a small
- "if [ \"$COVERAGE\" = \"1\" ]; then vendor/bin/phpunit --coverage-clover=coverage.clover $MODULE_PATH/tests/; fi"

after_script:
- "if [ \"$COVERAGE\" = \"1\" ]; then mv coverage.clover ~/build/$TRAVIS_REPO_SLUG/; fi"
- cd ~/build/$TRAVIS_REPO_SLUG
- wget https://scrutinizer-ci.com/ocular.phar
- "if [ \"$COVERAGE\" = \"1\" ]; then travis_retry codecov && travis_retry php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi"
27 changes: 27 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Copyright (c) 2014,
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 THE COPYRIGHT HOLDERS AND CONTRIBUTORS "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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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.
19 changes: 19 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Log of changes

Below is the log of changes for the SilverStripe Users module

# 1.0.0

Initial stable release for this module

# 1.0.1

Minor update to add default bootstrap classes to templates

# 1.0.2

Minor update to:

* Add travis config
* Add License
* Add contributing file
16 changes: 16 additions & 0 deletions contributing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Contributing

We have released this module open source to the community and as such welcome
any feedback that usera may have.

If you encounter any issues, have any ideas or want to request a feature, please
use the following links:

* [Sharing your opinion and raising issues](https://github.com/i-lateral/silverstripe-users/issues)
* [Submit a pull request](https://github.com/i-lateral/silverstripe-users/pulls)

## Translations

If you would like to add some translations to this module, please either provide
us with a pull request or alternativley submit an issue with the translations you
would like implemented

0 comments on commit 1e411c5

Please sign in to comment.