summaryrefslogtreecommitdiff
path: root/spec
Commit message (Collapse)AuthorAgeFilesLines
* Remove old should syntax from specRobert Speicher2015-09-161-2/+2
|
* Merge branch 'rs-rspec3' into 'master'Valery Sizov2015-09-0859-794/+763
|\ | | | | | | | | | | | | | | RSpec 3 Updates CI's specs to be a bit more like CE's to make that transition a little easier. See merge request !246
| * Convert to RSpec3 syntax via transpecrs-rspec3Robert Speicher2015-08-3043-440/+440
| | | | | | | | | | | | | | Command: transpec -c 'bundle exec rspec spec -t ~feature' \ -o should,oneliner,should_receive
| * Use `described_class` where appropriateRobert Speicher2015-08-3023-131/+128
| |
| * Update `stub` syntax usagesRobert Speicher2015-08-309-48/+34
| |
| * Remove empty RunnerProject specRobert Speicher2015-08-301-16/+0
| |
| * Update outdated `.items` syntaxRobert Speicher2015-08-302-3/+3
| |
| * Use `eq` instead of `==` in matchersRobert Speicher2015-08-3029-215/+215
| |
| * Add `feature: true` metadata to feature specsRobert Speicher2015-08-3012-12/+12
| |
| * Don't use `raise_error` without a parameterRobert Speicher2015-08-304-6/+7
| |
| * `page.should[_not]` -> `expect(page).[not_]to`Robert Speicher2015-08-3012-65/+65
| |
| * Don't `describe` symbolsRobert Speicher2015-08-3016-54/+54
| |
| * `be_(false|true)` -> `be_(falsey|truthy)`Robert Speicher2015-08-3014-54/+54
| |
| * Update any_instance usagesRobert Speicher2015-08-307-20/+20
| |
| * Faker -> FFakerRobert Speicher2015-08-301-1/+1
| |
| * Make spec_helper more like CE'sRobert Speicher2015-08-303-35/+36
| |
* | Fix commits ordering when using PostgreSQLfix-commits-ordering-for-postgresqlKamil Trzcinski2015-08-261-0/+18
|/
* Merge branch 'build-triggers' into 'master'Robert Speicher2015-08-2112-61/+393
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement build trigger API This commit implements Build Triggers. There are changes to API request: - Due to security advised method to pass trigger token is to use form data - Advised method to pass variables is to use form data TODO: - [x] Implement API - [x] Implement UI - [x] Dimitriy and Valery review - [x] Write specs - [x] Write documentation - [x] Job documentation review See merge request !229
| * Added TriggerController specsbuild-triggersKamil Trzcinski2015-08-211-0/+26
| |
| * Fix specsKamil Trzcinski2015-08-211-1/+2
| |
| * Retrigger builds with [ci skip]Kamil Trzcinski2015-08-211-0/+15
| |
| * Added CreateTriggerRequestService specsKamil Trzcinski2015-08-212-0/+61
| |
| * Create specs for build triggersKamil Trzcinski2015-08-216-10/+191
| |
| * Initial support for build triggersKamil Trzcinski2015-08-217-57/+105
| |
| * Add committed_at to commits to properly order last commit (the force push issue)Kamil Trzcinski2015-08-211-2/+2
| |
* | Fix specsfix-variable-saving-errorKamil Trzcinski2015-08-211-1/+1
|/
* Make the YAML validation more stricteryaml-validationKamil Trzcinski2015-08-191-4/+11
| | | | | - deny all globals that are not hases and doesn't contain script, the script is required now - verify that script is either string or array of an strings
* Prefer `failed` commit status over `skipped` if no builds were createdbroken-yaml-errorsKamil Trzcinski2015-08-061-0/+13
|
* Fix broken yaml error savingKamil Trzcinski2015-08-061-0/+15
|
* Merge branch 'yaml-variables' into 'master' Kamil Trzciński2015-08-053-2/+39
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Support yaml variables This MR introduces ability to define variables from YAML. ```yaml variables: DB_NAME: postgres test: script: echo $DB_NAME ``` The variables are passed using the same API as Secure Variables. The API introduces additional parameter: public. All variables defined in YAML are marked as public. The GitLab Runner when detects public variables will pass them to the services. This makes it easy to fine tune linked services to for example define database name. ```yaml services: - postgres variables: POSTGRES_DB: gitlab ``` The above example will run [postgres](https://registry.hub.docker.com/u/library/postgres/) and pass POSTGRES_DB to postgres container making it to create `gitlab` database instead of default `postges`. **Note:** All variables will passed to all service containers. It's not designed to distinguish which variable should go where. /cc @sytses @vsizov @dzaporozhets See merge request !227
| * Added support for YAML-defined variablesKamil Trzcinski2015-08-053-2/+39
| |
* | Merge branch 'service-testing' into 'master' Kamil Trzciński2015-08-051-24/+2
|\ \ | |/ |/| | | | | | | | | | | | | | | | | Fix service testing Fixes: - https://gitlab.com/gitlab-org/gitlab-ci/issues/248 - https://gitlab.com/gitlab-org/gitlab-ci/issues/208 /cc @vsizov See merge request !221
| * Fix service testingKamil Trzcinski2015-08-031-24/+2
| |
* | Fix specsKamil Trzcinski2015-08-051-2/+2
| |
* | Merge branch 'skipped_commit' into 'master' Kamil Trzciński2015-08-051-0/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commits with [ci skip] have special skipped status ![Screen_Shot_2015-07-30_at_14.02.50](https://gitlab.com/gitlab-org/gitlab-ci/uploads/f200af385679b564cd15d730bd4ccd20/Screen_Shot_2015-07-30_at_14.02.50.png) + Commits with [ci skip] are marked as skipped + Commits without builds are marked as skipped Resolution for: + https://dev.gitlab.org/gitlab/gitlab-ci/issues/264 + https://dev.gitlab.org/gitlab/gitlab-ci/issues/266 This requires CE update: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/1073 /cc @vsizov @sytses See merge request !216
| * | Fixed specsKamil Trzcinski2015-08-051-1/+1
| | |
| * | Commits with [ci skip] have special skipped statusKamil Trzcinski2015-08-051-0/+1
| | |
* | | Fix specsKamil Trzcinski2015-08-031-14/+14
| | |
* | | Rename all occurrences of type to stageKamil Trzcinski2015-08-031-14/+14
|/ /
* | Use avatars from GitLabKamil Trzcinski2015-08-032-54/+49
| | | | | | | | Rewrite Gravatar URLs if needed in order to have images in different size
* | Make YAML validation stricterKamil Trzcinski2015-08-031-2/+2
|/
* Fix: user could steal specific runnerKamil Trzcinski2015-07-221-4/+16
| | | | | | - check if user has manage access to project - don't cache result of authorized_projects, because it's serialised with User object - clear user sessions
* port version matching code in upgrader lib from gitlabWarren Volz2015-07-171-5/+18
| | | | | | | - fixes upgrader script not working with v7.1x versions - rspec test cases from gitlab for upgrader lib - rename gitlab to gitlabci - use real data for gitlabci3 version check
* Merge branch 'build-types' into 'master'Kamil Trzciński2015-07-134-94/+93
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow to specify flexible list of types in yaml First part of flexible pipeline build in GitLab CI Having following `.gitlab-ci.yml`: ``` types: - test - deploy - notify rspec: script: "rspec" rubocop: script: "rubocop" staging: type: deploy script: "echo deploy" only: - master production: type: deploy script: "echo production" only: - tags dockerhub: type: notify script: "curl http://docker/hub/web/hook" downstream: type: notify script: "curl http://build/downstream/jobs" ``` GitLab CI will trigger two test jobs in parallel, when finished it will trigged either staging or production, when finished it will trigger dockerhub and downstream in parallel. The UI (screenshots are not for above YAML): ![Screen_Shot_2015-07-10_at_15.56.26](https://gitlab.com/gitlab-org/gitlab-ci/uploads/1f714b73772cf0d44168fb8e20e35561/Screen_Shot_2015-07-10_at_15.56.26.png) ![Screen_Shot_2015-07-10_at_15.57.19](https://gitlab.com/gitlab-org/gitlab-ci/uploads/fc9f458f2ca517d923a4382466fa99eb/Screen_Shot_2015-07-10_at_15.57.19.png) TODO: - [x] Implement in CI - [x] Specs - [x] Changelog - [x] CI tests - [ ] Documentation /cc @vsizov @sytses @dzaporozhets See merge request !198
| * Allow to specify flexible list of types in yamlKamil Trzcinski2015-07-104-94/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ``` types: - test - deploy - notify rspec: script: "rspec" rubocop: script: "rubocop" staging: type: deploy script: "echo deploy" only: - master production: type: deploy script: "echo production" only: - tags dockerhub: type: notify script: "curl http://docker/hub/web/hook" downstream: type: notify script: "curl http://build/downstream/jobs" ``` This will trigger two test jobs in parallel, when finished it will trigged either staging or production, when finished it will trigger dockerhub and downstream in parallel.
* | Fix annotationsKamil Trzcinski2015-07-131-1/+1
| |
* | Added specsKamil Trzcinski2015-07-131-0/+44
|/
* Fixed specsKamil Trzcinski2015-07-101-4/+11
|
* Merge branch 'builds-path' into 'master'Kamil Trzciński2015-07-091-3/+7
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Make configurable builds_path in application.yml We have a new option in `application.yml`: ``` gitlab_ci: builds_path: builds/ ``` /cc @marin @vsizov See merge request !193
| * Make configurable builds_path in application.ymlbuilds-pathKamil Trzcinski2015-07-081-3/+7
| |