Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib/ci
AgeCommit message (Collapse)Author
2016-05-25Merge branch 'complexity/enable-multiple-rubocop-cops-2' into 'master' Robert Speicher
Enable multiple compatible Rubocop cops ## What does this MR do? This MR enables multiple Rubocop cops, that are already compatible with our codebase. See #17406. Cops enabled: ```text Style/ArrayJoin: Description: Use Array#join instead of Array#*. StyleGuide: https://github.com/bbatsov/ruby-style-guide#array-join ---------------- Style/Attr: Description: Checks for uses of Module#attr. StyleGuide: https://github.com/bbatsov/ruby-style-guide#attr ---------------- Style/BlockComments: Description: Do not use block comments. StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-block-comments ---------------- Style/ClassMethods: Description: Use self when defining module/class methods. StyleGuide: https://github.com/bbatsov/ruby-style-guide#def-self-class-methods ---------------- Style/EndBlock: Description: Avoid the use of END blocks. StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-END-blocks ---------------- Style/EvenOdd: Description: Favor the use of Fixnum#even? && Fixnum#odd? StyleGuide: https://github.com/bbatsov/ruby-style-guide#predicate-methods ---------------- Style/FileName: Description: Use snake_case for source file names. StyleGuide: https://github.com/bbatsov/ruby-style-guide#snake-case-files ExpectMatchingDefinition: false ---------------- Style/FirstMethodParameterLineBreak: Description: Checks for a line break before the first parameter in a multi-line method parameter definition. ---------------- Style/FlipFlop: Description: Checks for flip flops StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-flip-flops ---------------- Style/GlobalVars: Description: Do not introduce global variables. StyleGuide: https://github.com/bbatsov/ruby-style-guide#instance-vars Reference: http://www.zenspider.com/Languages/Ruby/QuickRef.html ---------------- Style/IfWithSemicolon: Description: Do not use if x; .... Use the ternary operator instead. StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-semicolon-ifs ---------------- Style/LambdaCall: Description: Use lambda.call(...) instead of lambda.(...). StyleGuide: https://github.com/bbatsov/ruby-style-guide#proc-call EnforcedStyle: call ---------------- Style/MethodName: Description: Use the configured style when naming methods. StyleGuide: https://github.com/bbatsov/ruby-style-guide#snake-case-symbols-methods-vars EnforcedStyle: snake_case ---------------- Style/MultilineMethodDefinitionBraceLayout: Description: Checks that the closing brace in a method definition is symmetrical with respect to the opening brace and the method parameters. ---------------- Style/NestedModifier: Description: Avoid using nested modifiers. StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-nested-modifiers ---------------- Style/OpMethod: Description: When defining binary operators, name the argument other. StyleGuide: https://github.com/bbatsov/ruby-style-guide#other-arg ---------------- Style/SignalException: Description: Checks for proper usage of fail and raise. StyleGuide: https://github.com/bbatsov/ruby-style-guide#prefer-raise-over-fail EnforcedStyle: only_raise ---------------- Style/SpaceAfterNot: Description: Tracks redundant space after the ! operator. StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-space-bang ---------------- Style/SpaceBeforeSemicolon: Description: No spaces before semicolons. ---------------- Style/SpaceInsideRangeLiteral: Description: No spaces inside range literals. StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-space-inside-range-literals ---------------- Style/SpaceInsideStringInterpolation: Description: Checks for padding/surrounding spaces inside string interpolation. StyleGuide: https://github.com/bbatsov/ruby-style-guide#string-interpolation EnforcedStyle: no_space ---------------- Style/StabbyLambdaParentheses: Description: Check for the usage of parentheses around stabby lambda arguments. StyleGuide: https://github.com/bbatsov/ruby-style-guide#stabby-lambda-with-args EnforcedStyle: require_parentheses ---------------- Style/StringMethods: Description: Checks if configured preferred methods are used over non-preferred. PreferredMethods: intern: to_sym ---------------- Style/VariableInterpolation: Description: Don't interpolate global, instance and class variables directly in strings. StyleGuide: https://github.com/bbatsov/ruby-style-guide#curlies-interpolate ---------------- Style/VariableName: Description: Use the configured style when naming variables. StyleGuide: https://github.com/bbatsov/ruby-style-guide#snake-case-symbols-methods-vars EnforcedStyle: snake_case ---------------- Style/WhenThen: Description: Use when x then ... for one-line cases. StyleGuide: https://github.com/bbatsov/ruby-style-guide#one-line-cases ---------------- Style/WhileUntilModifier: Description: Favor modifier while/until usage when you have a single-line body. StyleGuide: https://github.com/bbatsov/ruby-style-guide#while-as-a-modifier MaxLineLength: 80 ``` Closes #17406 See merge request !4286
2016-05-25Enable multiple compatible Rubocop copsGrzegorz Bizon
Closes #17406
2016-05-24Replace \n to <br>Kamil Trzcinski
2016-05-23Enable Style/SpaceAroundKeyword cop and fix offensesRobert Speicher
2016-05-23Fix Error 500 in CI charts by gracefully handling commits with no durationsStan Hu
Closes #17730
2016-05-19Add minor corrections related to config of runnerGrzegorz Bizon
2016-05-19Improve setting default runner attrs when using APIGrzegorz Bizon
2016-05-19Set run untagged option when registering a runnerGrzegorz Bizon
2016-05-12Merge branch 'send-incremental-build-log' into 'master' Jacob Schatz
Update build log incrementally Proof of concept implementation of incremental sending of build log to browser. cc @jschatz1 @vsizov @grzesiek @tmaczukin See merge request !3737
2016-05-10Fix a few places where autoloading would failRémy Coutable
- Fix naming of API::CommitStatuses - Ensure we use require_dependency instead of require - Ensure the namespace is right in lib/api/api.rb, otherwise, we might require Grape::API::Helpers which defines the `#params` method. This is to avoid requiring a file multiple times and getting an "Already initialized constant" error. Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-05-09Encode state as base64 stringKamil Trzcinski
2016-05-09Send trace to a browser incrementally when build is runningKamil Trzcinski
We send a state of ansi2html to client, client needs to send this state back. The state describes the configuration of generator and position within trace.
2016-04-22Fix some typosTomasz Maczukin
2016-04-22Modify code formattingTomasz Maczukin
2016-04-22Simplify the GitlabCiYamlProcessor#initial_parsing methodTomasz Maczukin
2016-04-22Add posibility to define a hidden job without 'script' in .gitlab-ci.ymlTomasz Maczukin
2016-04-21Merge branch 'ci-commit-as-pipeline' into 'master' Kamil Trzciński
Ci::Commit becomes a Pipeline object 1. Ci::Commit receives context: ref, :tag. 1. One Ci::Commit describes a one Pipeline 1. Pipeline is created from `.gitlab-ci.yml` 1. Pipeline is a ordered group of builds 1. We test MR against Pipeline 1. Pipelines have a separate view (https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/3703) 1. Pipeline can be triggered from UI (https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/3703) 1. Later we change `Trigger -> TriggerRequest -> Build` to `Trigger -> Pipeline` (future) 1. We add a Pipeline Hook that will be triggered on Pipeline status change (future) 1. We extend notifications to use `Pipeline Hook` to send summary on pipeline changes (future) After merging that I'll prepare a separate MR that will unify naming, database columns, table names: ``` Ci::Commit -> Pipeline Ci::Build -> Build CommitStatus -> Job GenericCommitStatus -> ExternalJob ci_commits -> pipelines ci_builds -> jobs ``` This MR implements first 5 points. This is made to solve this issue https://gitlab.com/gitlab-org/gitlab-ce/issues/14149. See merge request !3653
2016-04-20Fix Build#append_trace method usage when trace file doesn't exists yetTomasz Maczukin
2016-04-20Fix some typos in documentationTomasz Maczukin
[ci skip]
2016-04-20Add documentation of incremental trace update APITomasz Maczukin
[ci skip]
2016-04-20Make sure that appending is done on a valid lengthTomasz Maczukin
2016-04-20Add range checkingTomasz Maczukin
2016-04-20Add incremental build trace update APITomasz Maczukin
2016-04-19Merge remote-tracking branch 'origin/master' into ci-commit-as-pipelineKamil Trzcinski
# Conflicts: # db/schema.rb
2016-04-18Make rubocop happyKamil Trzcinski
2016-04-18Merge branch 'after-script' into make-before-after-overridableKamil Trzcinski
2016-04-18Resolve mergeKamil Trzcinski
2016-04-18Merge branch 'after-script' into make-before-after-overridableKamil Trzcinski
2016-04-18Merge remote-tracking branch 'origin/master' into after-scriptKamil Trzcinski
2016-04-18Merge branch 'after-script' into make-before-after-overridableKamil Trzcinski
2016-04-18Fix rubocop complainsKamil Trzcinski
2016-04-18Minor refactorings in CI configGrzegorz Bizon
2016-04-18Validate job-level variables in YAML config fileGrzegorz Bizon
2016-04-18Minor refactoring in code related to job variablesGrzegorz Bizon
2016-04-18Make CI config return empty array if no job variablesGrzegorz Bizon
2016-04-18Rename method that returns global envs in CI confGrzegorz Bizon
2016-04-18Read job variables directly from gitlab CI configGrzegorz Bizon
2016-04-18Add `variables` keyword to job in CI config YAMLGrzegorz Bizon
2016-04-17Merge branch 'after-script' into make-before-after-overridableKamil Trzcinski
* after-script: Add CHANGELOG and documentation Rename finally_script to after_script Conflicts: lib/ci/gitlab_ci_yaml_processor.rb spec/lib/ci/gitlab_ci_yaml_processor_spec.rb
2016-04-17Rename finally_script to after_scriptKamil Trzcinski
2016-04-16Allow the before_script and finally_script to be overwritten in context of jobKamil Trzcinski
2016-04-16Implement finally_script which allows to do cleanups as part of the build ↵Kamil Trzcinski
process
2016-04-12Fix create_next_builds methodKamil Trzcinski
2016-03-23Fix build dependencies, when the dependency is a stringKamil Trzcinski
2016-03-16make conditional a bit clearerJason Roehm
2016-03-15fixed missing argument in listJason Roehm
2016-03-15fix rubocop violationJason Roehm
2016-03-15add 'triggers' keyword to gitlab-ci.yml 'only' and 'except' fields to allow ↵Jason Roehm
control over whether triggers will cause jobs to run
2016-03-11Merge remote-tracking branch 'origin/master' into gitlab-ci-yaml-updatesKamil Trzcinski
# Conflicts: # spec/lib/ci/gitlab_ci_yaml_processor_spec.rb
2016-03-11Allow to define on which builds the current one depends onKamil Trzcinski