diff options
author | Joas Schilling <coding@schilljs.com> | 2016-07-27 12:31:42 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2016-07-27 12:31:42 +0300 |
commit | 5064326ce90650443960f4e48f136f3c15f6ba72 (patch) | |
tree | b5f50598b6f5fa70dc787be9f415f7746f698db3 |
Init
-rw-r--r-- | .gitignore | 55 | ||||
-rw-r--r-- | .scrutinizer.yml | 12 | ||||
-rw-r--r-- | .travis.yml | 71 | ||||
-rw-r--r-- | CONTRIBUTING.md | 25 | ||||
-rw-r--r-- | README.md | 10 | ||||
-rw-r--r-- | issue_template.md | 81 |
6 files changed, 254 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..181163a --- /dev/null +++ b/.gitignore @@ -0,0 +1,55 @@ +# just sane ignores +.*.sw[po] +*.bak +*.BAK +*~ +*.orig +*.class +.cvsignore +Thumbs.db +*.py[co] +_darcs/* +CVS/* +.svn/* +RCS/* +*.backup* + +# kdevelop +.kdev +*.kdev4 +*.kate-swp + +# Lokalize +*lokalize* + +# eclipse +.project +.settings + +# netbeans +nbproject + +# phpStorm +.idea +*.iml + +# geany +*.geany + +# Cloud9IDE +.settings.xml +.c9revisions + +# vim ex mode +.vimrc + +# Mac OS +.DS_Store + +# WebFinger +.well-known +/.buildpath + +# Tests - auto-generated files +/tests/coverage* +/tests/clover.xml diff --git a/.scrutinizer.yml b/.scrutinizer.yml new file mode 100644 index 0000000..7a3da7a --- /dev/null +++ b/.scrutinizer.yml @@ -0,0 +1,12 @@ +filter: + excluded_paths: + - 'l10n/*' + - 'tests/*' + +imports: + - javascript + - php + +tools: + external_code_coverage: + timeout: 7200 # Timeout in seconds: 2 hours diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..c99e2c9 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,71 @@ +language: php +php: + - 5.4 + - 5.5 + - 5.6 + - 7 + +env: + global: + - CORE_BRANCH=master + - APP_NAME=files_automatedtagging + matrix: + - DB=sqlite + +branches: + only: + - master + - /^stable\d+(\.\d+)?$/ + +before_install: + - wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh + - bash ./before_install.sh $APP_NAME $CORE_BRANCH $DB + + # Add some output debugging information + - cd ../server + - ./occ check + - ./occ status + - ./occ app:list + +script: + - cd apps/$APP_NAME/ + + # Test the app + - sh -c "if [ '$JSTESTS' != '1' -a '$CODECHECK' = '1' ]; then find . -name \*.php -exec php -l \"{}\" \;; fi" + - cd ../../ + - sh -c "if [ '$JSTESTS' != '1' -a '$CODECHECK' = '1' ]; then ./occ app:check-code $APP_NAME -c private -c strong-comparison; fi" + - sh -c "if [ '$JSTESTS' != '1' -a '$CODECHECK' = '2' ]; then ./occ app:check-code $APP_NAME -c deprecation; fi" + - cd apps/$APP_NAME/ + + # Run phpunit tests + - cd tests/ + - sh -c "if [ '$JSTESTS' != '1' -a '$CODECHECK' != '1' -a '$CODECHECK' != '2' ]; then phpunit --configuration phpunit.xml; fi" + + # Create coverage report + - sh -c "if [ '$JSTESTS' != '1' -a '$CODECHECK' != '1' -a '$CODECHECK' != '2' ]; then wget https://scrutinizer-ci.com/ocular.phar; fi" + - sh -c "if [ '$JSTESTS' != '1' -a '$CODECHECK' != '1' -a '$CODECHECK' != '2' ]; then php ocular.phar code-coverage:upload --format=php-clover clover.xml; fi" + - cd ../ + + # Run Javascript unit tests + #- cd tests/js + #- sh -c "if [ '$JSTESTS' = '1' ]; then npm install --deps; node_modules/karma/bin/karma start karma.config.js --single-run; fi" + #- cd ../ + +matrix: + include: + - php: 5.4 + env: DB=mysql + - php: 5.4 + env: DB=pgsql + - php: 5.4 + env: DB=oracle + - php: 5.4 + env: DB=mysql;CODECHECK=1 + - php: 5.4 + env: DB=mysql;CODECHECK=2 + #- php: 5.4 + # env: DB=mysql;JSTESTS=1 + allow_failures: + - env: DB=mysql;CODECHECK=2 + - env: DB=oracle # TODO: temporary until it is fixed + fast_finish: true diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..2119a8c --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,25 @@ +## Submitting issues + +If you have questions about how to install or use Nextcloud, please direct these to our [forum][forum]. We are also available on [IRC][irc]. + +### Short version + + * The [**issue template can be found here**][template]. Please always use the issue template when reporting issues. + +### Guidelines +* Please search the existing issues first, it's likely that your issue was already reported or even fixed. + - Go to one of the repositories, click "issues" and type any word in the top search/command bar. + - You can also filter by appending e. g. "state:open" to the search string. + - More info on [search syntax within github](https://help.github.com/articles/searching-issues) +* This repository ([Files Access Control](https://github.com/nextcloud/files_automatedtagging/issues)) is *only* for issues within the Nextcloud Files Automated Tagging App code. +* __SECURITY__: Report any potential security bug to us via [our HackerOne page](https://hackerone.com/nextcloud) or security@nextcloud.com following our [security policy](https://nextcloud.com/security/) instead of filing an issue in our bug tracker. +* Report the issue using our [template][template], it includes all the information we need to track down the issue. + +Help us to maximize the effort we can spend fixing issues and adding new features, by not reporting duplicate issues. + +[template]: https://raw.github.com/nextcloud/server/master/issue_template.md +[forum]: https://help.nextcloud.com/ +[irc]: https://webchat.freenode.net/?channels=nextcloud + +### Contribute Code and translations +Please check [server's contribution guidelines](https://github.com/nextcloud/server/blob/master/CONTRIBUTING.md#contributing-to-source-code) for further information about contributing code and translations. diff --git a/README.md b/README.md new file mode 100644 index 0000000..266d8aa --- /dev/null +++ b/README.md @@ -0,0 +1,10 @@ +# Nextcloud Files Automated Tagging App + +An app for Nextcloud that automatically assigns tags to newly uploaded files based on some conditions + +## QA metrics on master branch: + +[![Build Status](https://travis-ci.org/nextcloud/files_automatedtagging.svg?branch=master)](https://travis-ci.org/nextcloud/files_automatedtagging/branches) +[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/nextcloud/files_automatedtagging/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/nextcloud/files_automatedtagging/?branch=master) +[![Code Coverage](https://scrutinizer-ci.com/g/nextcloud/files_automatedtagging/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/nextcloud/files_automatedtagging/?branch=master) + diff --git a/issue_template.md b/issue_template.md new file mode 100644 index 0000000..0e9142e --- /dev/null +++ b/issue_template.md @@ -0,0 +1,81 @@ +<!-- +Thanks for reporting issues back to Nextcloud! This is the issue tracker of the Nextcloud Files Automated Tagging App, if you have any support question please check out https://help.nextcloud.com/ + +This is the bug tracker for the Nextcloud Files Automated Tagging App. Find other components at https://github.com/nextcloud/core/blob/master/CONTRIBUTING.md#guidelines + +To make it possible for us to help you please fill out below information carefully. +--> +### Steps to reproduce +1. +2. +3. + +### Expected behaviour +Tell us what should happen + +### Actual behaviour +Tell us what happens instead + +### Server configuration +**Operating system**: + +**Web server:** + +**Database:** + +**PHP version:** + +**Nextcloud version:** (see Nextcloud admin page) + +**Where did you install Nextcloud from:** + +**Signing status:** + +``` +Login as admin user into your Nextcloud and access +http://example.com/index.php/settings/integrity/failed +paste the results here. +``` + +**List of activated apps:** + +``` +If you have access to your command line run e.g.: +sudo -u www-data php occ app:list +from within your Nextcloud installation folder +``` + +**The content of config/config.php:** + +``` +If you have access to your command line run e.g.: +sudo -u www-data php occ config:list system +from within your Nextcloud installation folder +``` + +**Are you using external storage, if yes which one:** local/smb/sftp/... + +**Are you using encryption:** yes/no + +**Are you using an external user-backend, if yes which one:** LDAP/ActiveDirectory/Webdav/... + +### Client configuration +**Browser:** + +**Operating system:** + +### Logs + +#### Nextcloud log (data/owncloud.log) +``` +Insert your Nextcloud log here +``` + +#### Browser log +``` +Insert your browser log here, this could for example include: + +a) The javascript console log +b) The network log +c) ... +``` |