Prepare for core integration

pull/6827/head
Oliver Günther 6 years ago
parent bfbd13ec63
commit 1bf1c9d784
No known key found for this signature in database
GPG Key ID: A3A8BDAD7C0C552C
  1. 3
      .hound.yml
  2. 273
      .rubocop.yml
  3. 138
      .travis.yml
  4. 0
      modules/openid_connect/CHANGELOG.md
  5. 0
      modules/openid_connect/README.md
  6. 0
      modules/openid_connect/app/assets/images/openid_connect/LICENSE.md
  7. 0
      modules/openid_connect/app/assets/images/openid_connect/auth_provider-google.png
  8. 0
      modules/openid_connect/app/assets/images/openid_connect/auth_provider-heroku.png
  9. 0
      modules/openid_connect/app/session/session_controller.rb
  10. 0
      modules/openid_connect/app/views/session/_warn_logout.js.erb
  11. 0
      modules/openid_connect/app/views/session/logout_warning.html.erb
  12. 0
      modules/openid_connect/config/locales/de.yml
  13. 0
      modules/openid_connect/config/locales/en.yml
  14. 0
      modules/openid_connect/config/routes.rb
  15. 0
      modules/openid_connect/lib/open_project/openid_connect.rb
  16. 0
      modules/openid_connect/lib/open_project/openid_connect/engine.rb
  17. 0
      modules/openid_connect/lib/open_project/openid_connect/sso_logout.rb
  18. 0
      modules/openid_connect/lib/open_project/openid_connect/version.rb
  19. 0
      modules/openid_connect/lib/openproject-openid_connect.rb
  20. 0
      modules/openid_connect/openproject-openid_connect.gemspec
  21. 0
      modules/openid_connect/spec/requests/openid_connect_spec.rb
  22. 0
      modules/openid_connect/spec/requests/openid_connect_spec_helpers.rb

@ -1,3 +0,0 @@
ruby:
enabled: true
config_file: .rubocop.yml

@ -1,273 +0,0 @@
AllCops:
TargetRubyVersion: 2.2
Exclude:
- db/schema.rb
AccessorMethodName:
Enabled: false
ActionFilter:
Enabled: false
Alias:
Enabled: false
AndOr:
Enabled: false
ArrayJoin:
Enabled: false
AsciiComments:
Enabled: false
AsciiIdentifiers:
Enabled: false
Attr:
Enabled: false
BlockLength:
Enabled: false
BlockNesting:
Enabled: false
CaseEquality:
Enabled: false
CharacterLiteral:
Enabled: false
ClassAndModuleChildren:
Enabled: false
ClassLength:
Enabled: false
ClassVars:
Enabled: false
CollectionMethods:
PreferredMethods:
find: detect
reduce: inject
collect: map
find_all: select
ColonMethodCall:
Enabled: false
CommentAnnotation:
Enabled: false
CyclomaticComplexity:
Enabled: false
Delegate:
Enabled: false
PreferredHashMethods:
Enabled: false
Documentation:
Enabled: false
DotPosition:
EnforcedStyle: leading
DoubleNegation:
Enabled: false
EachWithObject:
Enabled: false
EmptyLiteral:
Enabled: false
Encoding:
Enabled: false
EvenOdd:
Enabled: false
FileName:
Enabled: false
FlipFlop:
Enabled: false
FormatString:
Enabled: false
GlobalVars:
Enabled: false
GuardClause:
Enabled: false
IfUnlessModifier:
Enabled: false
IfWithSemicolon:
Enabled: false
InlineComment:
Enabled: false
Lambda:
Enabled: false
LambdaCall:
Enabled: false
LineEndConcatenation:
Enabled: false
LineLength:
Max: 130
MethodLength:
Enabled: false
ModuleFunction:
Enabled: false
NegatedIf:
Enabled: false
NegatedWhile:
Enabled: false
Next:
Enabled: false
NilComparison:
Enabled: false
Not:
Enabled: false
NumericLiterals:
Enabled: false
OneLineConditional:
Enabled: false
OpMethod:
Enabled: false
ParameterLists:
Enabled: false
PercentLiteralDelimiters:
Enabled: false
PerlBackrefs:
Enabled: false
PredicateName:
NamePrefixBlacklist:
- is_
Proc:
Enabled: false
RaiseArgs:
Enabled: false
RegexpLiteral:
Enabled: false
SelfAssignment:
Enabled: false
SingleLineBlockParams:
Enabled: false
SingleLineMethods:
Enabled: false
SignalException:
Enabled: false
SpecialGlobalVars:
Enabled: false
# Forcing single quotes doesn't give any reasonable advantages. To the contrary:
# it forces you to change the quotes every time you want to add interpolation,
# newlines or other escape sequences (\n), or quotes (') to a string. Rubbish.
# Don't even think about performance. That never was a valid argument to begin with.
#
# For the record: using single quotes does NOT have any performance advantages.
# Even if it did, this would be a silly argument.
#
# Ideally we would just use double quotes everywhere but since that would result
# in innumerable rubocop offenses we will just disable this. Quote away.
StringLiterals:
Enabled: false
VariableInterpolation:
Enabled: false
TrivialAccessors:
Enabled: false
VariableInterpolation:
Enabled: false
WhenThen:
Enabled: false
WhileUntilModifier:
Enabled: false
WordArray:
Enabled: false
# Lint
AmbiguousOperator:
Enabled: false
AmbiguousRegexpLiteral:
Enabled: false
AssignmentInCondition:
Enabled: false
ConditionPosition:
Enabled: false
DeprecatedClassMethods:
Enabled: false
ElseLayout:
Enabled: false
HandleExceptions:
Enabled: false
InvalidCharacterLiteral:
Enabled: false
LiteralInCondition:
Enabled: false
LiteralInInterpolation:
Enabled: false
Loop:
Enabled: false
ParenthesesAsGroupedExpression:
Enabled: false
RequireParentheses:
Enabled: false
UnderscorePrefixedVariableName:
Enabled: false
Void:
Enabled: false

@ -1,138 +0,0 @@
#-- copyright
# OpenProject is a project management system.
# Copyright (C) 2012-2018 the OpenProject Foundation (OPF)
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License version 3.
#
# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:
# Copyright (C) 2006-2018 Jean-Philippe Lang
# Copyright (C) 2010-2013 the ChiliProject Team
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
# See doc/COPYRIGHT.rdoc for more details.
#++
###################################
#
# This file was generated by
# openproject-devkit.
#
# Do not modify this file directly!
#
###################################
language: ruby
rvm:
- 2.5.1
sudo: required
dist: trusty
cache:
bundler: true
directories:
- frontend/node_modules/foundation-apps
- public/assets
- app/assets/javascripts/bundles
- app/assets/javascripts/locales
branches:
only:
- master
- dev
- /^(stable|release)\/.*$/
env:
global:
- CI=true
- RAILS_ENV=test
before_install:
## Custom plugin instructions follow.
# Move the plugin into a subfolder. The plugin-provided Gemfile.plugins
# must refer to this folder.
- mkdir -p plugins/this
- echo `ls -a | tail -n+3 | grep -v plugins` plugins/this/ | xargs mv
# Get OpenProject.
# Doing the fetch detour as you cannot clone into the current directory.
- git init
- git remote add openproject https://github.com/opf/openproject.git
- git fetch --depth=1 openproject
- git checkout openproject/$TRAVIS_BRANCH
# work around https://github.com/travis-ci/travis-ci/issues/8969
- travis_retry gem update --system
# Don't install 1.16.3
- gem install bundler -v 1.16.2
# Install Node latest LTS
# This should only be necessary when preparing the cache or for npm test runs
# but installing later fails for unknown reasons.
- nvm install --lts
bundler_args: --binstubs --without development production docker
stages:
- prepare cache
- test
jobs:
include:
- stage: prepare cache
name: 'Prepare cache'
script:
- bash script/ci/cache_prepare.sh
- stage: test
name: 'plugins:units (1/1) - mysql'
script:
- bash script/ci/setup.sh plugins:units mysql
- bash script/ci/runner.sh plugins:units 1 1
- stage: test
name: 'plugins:units (1/1) - postgres'
script:
- bash script/ci/setup.sh plugins:units postgres
- bash script/ci/runner.sh plugins:units 1 1
- stage: test
name: 'plugins:features (1/1) - mysql'
script:
- bash script/ci/setup.sh plugins:features mysql
- bash script/ci/runner.sh plugins:features 1 1
- stage: test
name: 'plugins:features (1/1) - postgres'
script:
- bash script/ci/setup.sh plugins:features postgres
- bash script/ci/runner.sh plugins:features 1 1
- stage: test
name: 'plugins:cucumber (1/1) - mysql'
script:
- bash script/ci/setup.sh plugins:cucumber mysql
- bash script/ci/runner.sh plugins:cucumber 1 1
- stage: test
name: 'plugins:cucumber (1/1) - postgres'
script:
- bash script/ci/setup.sh plugins:cucumber postgres
- bash script/ci/runner.sh plugins:cucumber 1 1
addons:
chrome: stable
postgresql: "9.6"
Loading…
Cancel
Save