summaryrefslogtreecommitdiff
path: root/spec/lib/ci
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Fix next round of testsKamil Trzcinski2015-10-051-6/+6
|
* Fix testsKamil Trzcinski2015-09-291-3/+2
|
* fix specs. Stage 7Valery Sizov2015-09-152-305/+307
|
* fix specs. Stage 5Valery Sizov2015-09-151-19/+19
|
* rubocop satisfyValery Sizov2015-09-141-20/+20
|
* Fix Ci::Ansi2html specDmitriy Zaporozhets2015-09-111-33/+34
|
* Move helpers back to original directoryDmitriy Zaporozhets2015-09-093-42/+3
|
* Refactor CI testsDmitriy Zaporozhets2015-09-094-0/+500