summaryrefslogtreecommitdiff
path: root/spec/lib/ci
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'origin/master' into ci-commit-as-pipelineci-commit-as-pipelineKamil Trzcinski2016-04-191-19/+171
|\ | | | | | | | | # Conflicts: # db/schema.rb
| * Make rubocop happymake-before-after-overridableKamil Trzcinski2016-04-181-8/+8
| |
| * Merge branch 'after-script' into make-before-after-overridableKamil Trzcinski2016-04-181-16/+72
| |\
| | * Merge remote-tracking branch 'origin/master' into after-scriptKamil Trzcinski2016-04-181-16/+72
| | |\
| | | * Minor refactorings in CI configfeature/ci-job-env-variablesGrzegorz Bizon2016-04-181-3/+3
| | | |
| | | * Validate job-level variables in YAML config fileGrzegorz Bizon2016-04-181-13/+32
| | | |
| | | * Minor refactoring in code related to job variablesGrzegorz Bizon2016-04-181-19/+24
| | | |
| | | * Make CI config return empty array if no job variablesGrzegorz Bizon2016-04-181-0/+12
| | | |
| | | * Rename method that returns global envs in CI confGrzegorz Bizon2016-04-181-1/+1
| | | |
| | | * Read job variables directly from gitlab CI configGrzegorz Bizon2016-04-181-2/+2
| | | |
| | | * Make it possible to override build variablesGrzegorz Bizon2016-04-181-1/+1
| | | |
| | | * Add `variables` keyword to job in CI config YAMLGrzegorz Bizon2016-04-181-12/+32
| | | |
| * | | Merge branch 'after-script' into make-before-after-overridableKamil Trzcinski2016-04-181-2/+2
| |\ \ \ | | |/ /
| | * | Fix rubocop complainsKamil Trzcinski2016-04-181-2/+2
| | | |
| * | | Merge branch 'after-script' into make-before-after-overridableKamil Trzcinski2016-04-171-14/+14
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
| | * | Rename finally_script to after_scriptKamil Trzcinski2016-04-171-7/+7
| | | |
| * | | Allow the before_script and finally_script to be overwritten in context of jobKamil Trzcinski2016-04-161-3/+70
| |/ /
| * | Implement finally_script which allows to do cleanups as part of the build ↵Kamil Trzcinski2016-04-161-0/+29
| |/ | | | | | | process
* | Rename CiStatus to StatusableKamil Trzcinski2016-04-161-103/+0
| |
* | Fix CiStatus implementation and testsKamil Trzcinski2016-04-131-1/+1
| |
* | Fix rest of rspec and spinach testsKamil Trzcinski2016-04-121-3/+12
|/
* Test dependencies defined as symbolsKamil Trzcinski2016-03-231-0/+6
|
* Fix build dependencies, when the dependency is a stringKamil Trzcinski2016-03-231-3/+3
|
* Merge branch 'feature-ci-only-except-trigger' into 'master' Kamil Trzciński2016-03-221-0/+44
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CI: Add 'triggers' keyword to 'only' and 'except' lists to allow control over when triggers cause builds to run Currently, the `only` and `except` keywords in `.gitlab-ci.yml` only accept ref names or the special `branches` and `tags` keywords. However, these are primarily useful when controlling how repository activity affects the creation of builds. In my case, instead of building on every commit, I'd like to use the following logic: - If the repository is tagged, do a build. - Any other normal commits should not cause a build. - If a build is triggered via the API, always create one for the specified ref. From what I can tell, this isn't possible via the existing YAML syntax. In this MR, I introduce a new keyword `triggers` that goes along with `branches` and `tags`. I can implement the logic above using the following job configuration: ```yaml only: - tags - triggers ``` I updated the tests and documentation to reflect this and everything seems to pass. See merge request !3230
| * add tests for only/except 'triggers' keywordJason Roehm2016-03-151-0/+44
| |
* | adjusted behavior so canceled builds tagged as allowed to fail do not fail buildGeoffrey Lalonde2016-03-171-0/+23
|/
* Merge remote-tracking branch 'origin/master' into gitlab-ci-yaml-updatesKamil Trzcinski2016-03-111-0/+39
|\ | | | | | | | | # Conflicts: # spec/lib/ci/gitlab_ci_yaml_processor_spec.rb
| * Support YAML alias/anchor usage in .gitlab-ci.ymlPascal Bach2016-03-081-0/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows to reuse one job as a template for another one: ``` job1: &JOBTMPL script: execute-script-for-job job2: *JOBTMPL ``` This also helps to solve some of the issues in #342 Signed-off-by: Pascal Bach <pascal.bach@siemens.com> Signed-off-by: Fabio Huser <fabio.huser@siemens.com>
* | Allow to define on which builds the current one depends onKamil Trzcinski2016-03-111-0/+45
| |
* | Allow to pass name of created artifacts archive in `.gitlab-ci.yml`Kamil Trzcinski2016-03-111-1/+9
| |
* | Describe special YAML features: the use of anchors and hidden jobsKamil Trzcinski2016-03-111-0/+29
|/
* Extend specs for summary build statusci/extend-summary-status-specsGrzegorz Bizon2016-02-201-21/+51
| | | | | | | Additional specs cover a case when one of the builds is running but allowed to fail. Previous implementation returned `running` status, which is wrong. This behavior has been changed in 8.5, this commit adds missing specs.
* Fix missing ignored? for GenericCommitStatuscommit-status-fixKamil Trzcinski2016-02-191-25/+29
|
* Fix builds scheduler when first build is allowed to failGrzegorz Bizon2016-02-181-0/+20
| | | | | | | | Before this fix when there was only one relevant, previous build and it failed, but was allowed to fail, entire build had been marked as skipped. Closes #3192
* Add specs for build status helper classGrzegorz Bizon2016-02-181-0/+17
|
* Added cache:key to .gitlab-ci.yml allowing to fine tune the cachingci/cache-keyKamil Trzcinski2016-01-201-4/+21
|
* Fix spelling mistake, thanks Connor.fix-spelling-mistakeSytse Sijbrandij2015-12-281-3/+3
|
* Merge branch 'complexity/rubocop-metrics' into 'master' Douwe Maan2015-12-111-3/+3
|\ | | | | | | | | | | | | | | Enable rubocop metrics This enables rubocop metrics like CyclomaticComplexity and ABCSize. Initial threshold values are high, should be probably decreased. See merge request !1802
| * Refactor CI YAML processor's validatorsGrzegorz Bizon2015-12-081-3/+3
| |
* | Tag lib specsDouwe Maan2015-12-093-3/+3
|/
* Commits without .gitlab-ci.yml are marked as skippedKamil Trzcinski2015-11-191-1/+5
| | | | - Save detailed error when YAML syntax
* Allow to define cache in `.gitlab-ci.yml`cachesKamil Trzcinski2015-11-101-0/+82
|
* Change artifacts syntax to allow uploading untracked filesKamil Trzcinski2015-11-101-5/+18
|
* Implement Build ArtifactsKamil Trzcinski2015-11-101-0/+38
| | | | | | | - Offloads uploading to GitLab Workhorse - Use /authorize request for fast uploading - Added backup recipes for artifacts - Support download acceleration using X-Sendfile
* Fix testsonly-syntaxKamil Trzcinski2015-11-031-15/+11
|
* Extend yml syntax for only and except to support specifying repository pathKamil Trzcinski2015-11-021-79/+224
|
* Require jobs to be namedfail-on-empty-job-nameKamil Trzcinski2015-10-221-0/+14
|
* Fix specsKamil Trzcinski2015-10-151-2/+3
|
* Implement when syntax in .gitlab-ci.ymlKamil Trzcinski2015-10-151-2/+26
|
* Fix gitlab_ci_yaml_processor specsKamil Trzcinski2015-10-051-0/+3
|