mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 19:50:04 +00:00
Prepare for core integration
This commit is contained in:
-273
@@ -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
|
||||
|
||||
BinaryOperatorParameter:
|
||||
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
|
||||
-138
@@ -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"
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user