diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..2f7070b --- /dev/null +++ b/.travis.yml @@ -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" diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..d0813a9 --- /dev/null +++ b/LICENSE @@ -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. \ No newline at end of file diff --git a/changelog.md b/changelog.md new file mode 100644 index 0000000..de06bd4 --- /dev/null +++ b/changelog.md @@ -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 \ No newline at end of file diff --git a/contributing.md b/contributing.md new file mode 100644 index 0000000..72bbe49 --- /dev/null +++ b/contributing.md @@ -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 \ No newline at end of file