Skip to content
This repository was archived by the owner on May 31, 2022. It is now read-only.

Commit cbdcf58

Browse files
author
Matthias Leutenegger
committed
Init
0 parents  commit cbdcf58

27 files changed

+628
-0
lines changed

.editorconfig

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# For more information about the properties used in this file,
2+
# please see the EditorConfig documentation:
3+
# http://editorconfig.org
4+
5+
[*]
6+
charset = utf-8
7+
end_of_line = lf
8+
indent_size = 4
9+
indent_style = space
10+
insert_final_newline = true
11+
trim_trailing_whitespace = true
12+
13+
[{*.yml,package.json,*.js,*.scss}]
14+
indent_size = 2
15+
indent_style = space
16+
17+
# The indent size used in the package.json file cannot be changed:
18+
# https://github.com/npm/npm/pull/3180#issuecomment-16336516

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require('@silverstripe/eslint-config/.eslintrc');

.gitattributes

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/tests export-ignore
2+
/client/src export-ignore
3+
/.gitattributes export-ignore
4+
/.travis.yml export-ignore
5+
/.scrutinizer.yml export-ignore

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
/vendor/
3+
.DS_Store
4+

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
10

.scrutinizer.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
inherit: true
2+
3+
build:
4+
nodes:
5+
analysis:
6+
tests:
7+
override: [php-scrutinizer-run]
8+
9+
checks:
10+
php:
11+
code_rating: true
12+
duplication: true
13+
14+
filter:
15+
paths: [src/*, tests/*]

.travis.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
language: php
2+
3+
env:
4+
global:
5+
- TRAVIS_NODE_VERSION="10"
6+
7+
matrix:
8+
include:
9+
# - php: 7.2
10+
# env: DB=MYSQL RECIPE_VERSION=4.x-dev PHPUNIT_COVERAGE_TEST=1 PHPSTAN_TEST=1
11+
# - php: 7.0
12+
# env: DB=PGSQL RECIPE_VERSION=4.2.x-dev PHPUNIT_TEST=1
13+
# - php: 7.2
14+
# env: DB=MYSQL RECIPE_VERSION=4.3.x-dev NPM_TEST=1
15+
- php: 7.2
16+
env: DB=PGSQL RECIPE_VERSION=4.4.x-dev PHPUNIT_COVERAGE_TEST=1 PHPSTAN_TEST=1
17+
- php: 7.3
18+
env: DB=MYSQL RECIPE_VERSION=4.x-dev PHPUNIT_TEST=1
19+
20+
before_script:
21+
- phpenv rehash
22+
- phpenv config-rm xdebug.ini
23+
24+
- composer validate
25+
- composer require --no-update silverstripe/recipe-cms:"$RECIPE_VERSION"
26+
- if [[ $DB == PGSQL ]]; then composer require --no-update silverstripe/postgresql:2.1.x-dev; fi
27+
- composer install --prefer-source --no-interaction --no-progress --no-suggest --optimize-autoloader --verbose --profile
28+
29+
# Install NPM dependencies
30+
- if [[ $NPM_TEST ]]; then nvm install $TRAVIS_NODE_VERSION && nvm use $TRAVIS_NODE_VERSION && npm install -g yarn && yarn install --network-concurrency 1 && (cd vendor/silverstripe/admin && yarn install --network-concurrency 1) && yarn run build; fi
31+
32+
script:
33+
- if [[ $PHPUNIT_TEST ]]; then vendor/bin/phpunit -c 'phpunit.xml.dist'; fi
34+
- if [[ $PHPUNIT_COVERAGE_TEST ]]; then phpdbg -qrr vendor/bin/phpunit -c 'phpunit.xml.dist' --coverage-clover=coverage.xml; fi
35+
- if [[ $PHPCS_TEST ]]; then vendor/bin/phpcs src/ tests/ *.php; fi
36+
- if [[ $PHPSTAN_TEST ]]; then vendor/bin/phpstan analyse src/ tests/ -c "phpstan.neon" -a vendor/symbiote/silverstripe-phpstan/bootstrap.php --level 4; fi
37+
- if [[ $NPM_TEST ]]; then git diff-files --quiet -w --relative=client; fi
38+
- if [[ $NPM_TEST ]]; then git diff --name-status --relative=client; fi
39+
- if [[ $NPM_TEST ]]; then yarn coverage; fi
40+
- if [[ $NPM_TEST ]]; then yarn lint; fi
41+
42+
after_success:
43+
- if [[ $PHPUNIT_COVERAGE_TEST ]]; then bash <(curl -s https://codecov.io/bash) -f coverage.xml -F php; fi
44+
- if [[ $NPM_TEST ]]; then bash <(curl -s https://codecov.io/bash) -F js; fi

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Changelog
2+
All notable changes to this project will be documented in this file.
3+
4+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6+
7+
## [Unreleased]
8+
* Initial release
9+
10+
11+
[Unreleased]: https://github.com/syntro-opensource/silverstripe-elemental-bootstrap-listgroupsection

CONTRIBUTING.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Contributing
2+
- Maintenance on this module is a shared effort of those who use it
3+
- To contribute improvements to the code, ensure you raise a pull request and discuss with the module maintainers
4+
- Please follow the SilverStripe [code contribution guidelines](https://docs.silverstripe.org/en/contributing/code/) and [Module Standard](https://docs.silverstripe.org/en/developer_guides/extending/modules/#module-standard)
5+
- Supply documentation that follows the [GitHub Flavored Markdown](https://help.github.com/articles/markdown-basics/) conventions
6+
- When having discussions about this module in issues or pull request please adhere to the [SilverStripe Community Code of Conduct](https://docs.silverstripe.org/en/contributing/code_of_conduct/)
7+
8+
9+
## Contributor license agreement
10+
By supplying code to this module in patches, tickets and pull requests, you agree to assign copyright
11+
of that code to MODULE_COPYRIGHT_HOLDER_HERE., on the condition that these code changes are released under the
12+
same BSD license as the original module. We ask for this so that the ownership in the license is clear
13+
and unambiguous. By releasing this code under a permissive license such as BSD, this copyright assignment
14+
won't prevent you from using the code in any way you see fit.

LICENSE.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Copyright (c) Syntro GmbH
2+
All rights reserved.
3+
4+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
5+
6+
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
7+
8+
2. 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.
9+
10+
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
11+
12+
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.

0 commit comments

Comments
 (0)