summaryrefslogtreecommitdiff
path: root/spec/factories/ci/builds.rb
Commit message (Collapse)AuthorAgeFilesLines
* Replace factory_girl_rails with factory_bot_railsrc/use-factory_bot_railsRémy Coutable2017-12-141-1/+1
| | | | | | | | | | | I've followed the [upgrade guide](https://github.com/thoughtbot/factory_bot/blob/4-9-0-stable/UPGRADE_FROM_FACTORY_GIRL.md) and ran these two commands: ``` grep -e FactoryGirl **/*.rake **/*.rb -s -l | xargs sed -i "" "s|FactoryGirl|FactoryBot|" grep -e factory_girl **/*.rake **/*.rb -s -l | xargs sed -i "" "s|factory_girl|factory_bot|" ``` Signed-off-by: Rémy Coutable <remy@rymai.me>
* Fix specs failures, and use factory with `:ci_job_artifact, :archive`Kamil Trzcinski2017-12-031-2/+2
|
* Rename artifacts_* to legacy_artifacts_*Kamil Trzcinski2017-12-031-0/+11
|
* Fix most test failuresZeger-Jan van de Weg2017-12-031-0/+1
|
* Fix creation of job_artifact_uploaderKamil Trzcinski2017-12-031-2/+4
|
* Rename Artifact to JobArtifact, split metadata outZeger-Jan van de Weg2017-12-031-5/+3
| | | | | | | | | Two things at ones, as there was no clean way to seperate the commit and give me feedback from the tests. But the model Artifact is now JobArtifact, and the table does not have a type anymore, but the metadata is now its own model: Ci::JobArtifactMetadata.
* Create Ci::ArtifactsZeger-Jan van de Weg2017-12-031-23/+4
| | | | | | | | | | | | | | | | To allow jobs/builds to have multiple artifacts, and to start seperating concerns from Ci::Build a new model is created: Ci::Artifact. Changes include the updating of the ArtifactUploader to adapt to a slightly different interface. The uploader expects to be initialized with a `Ci::Build`. Futher a migration with the minimal fields, the needed foreign keys and an index. Last, the way this works is by prepending a module to Ci::Build so we can basically override behaviour but if needed use `super` to get the original behaviour.
* Ci::Build tag is a trait instead of an own factoryZeger-Jan van de Weg2017-10-301-1/+1
| | | | | | | | | Minor annoyance of mine, and there were a couple of things wrong, for example: 1. Switching on a property is just a trait 2. It didn't inherrit from its parent Find and replace through the code based fixed all occurances.
* Remove ci_trigger_request_with_variablesShinya Maeda2017-09-041-1/+1
|
* Fix specShinya Maeda2017-09-041-1/+1
|
* Revert autheticate! in Trigger APIShinya Maeda2017-09-041-1/+1
|
* Fix specShinya Maeda2017-09-031-4/+0
|
* Add validation for protected attributesShinya Maeda2017-09-031-2/+3
|
* Add the rest of specsShinya Maeda2017-09-031-0/+8
|
* Wrong data type when testing webhooksAlexander Randa2017-07-201-1/+1
|
* Make it possible to count a number of job retriesGrzegorz Bizon2017-07-171-0/+4
|
* Introduce cache policies for CI jobsNick Thomas2017-07-051-1/+2
|
* Send new configuration options with job's payloadTomasz Maczukin2017-06-121-2/+2
|
* Just use the url from options, not saving it as a columnLin Jen-Shin2017-06-011-1/+0
|
* Fix tests for adding environment_urlLin Jen-Shin2017-05-251-1/+3
|
* Add feature test with unicode traceadd-unicode-trace-feature-testShinya Maeda2017-05-231-0/+10
| | | | | | | | | | | | | | | | Squashed commit of the following: commit 43e5bba774e9e383dd55c665e82f6fcfc4ebfc4f Author: Shinya Maeda <gitlab.shinyamaeda@gmail.com> Date: Mon Apr 17 17:28:44 2017 +0900 Add fix commit 09610eebdf22ad048812bb86022504b2ad917e19 Author: Shinya Maeda <gitlab.shinyamaeda@gmail.com> Date: Mon Apr 17 17:03:49 2017 +0900 Add trace test
* Resolve "Add more tests for spec/controllers/projects/builds_controller_spec.rb"Dosuken shinya2017-04-281-0/+13
|
* Optimise trace handling code to use streaming instead of full readKamil Trzciński2017-04-061-1/+1
|
* Fix typoFilipa Lacerda2017-04-041-0/+5
| | | | Adds tests
* Fix after_script processing for Runners APIv4Tomasz Maczukin2017-03-231-1/+1
|
* Merge branch 'feature/runner-jobs-v4-api' into 'master' Kamil Trzciński2017-03-071-2/+28
|\ | | | | | | | | | | | | Feature/runner jobs v4 api Closes #28513 See merge request !9273
| * Add some fixes and refactoring after reviewTomasz Maczukin2017-03-021-0/+4
| |
| * Refactor JobRequest response structureTomasz Maczukin2017-03-021-2/+24
| |
* | Fix specs for detailed statuses for manual actionsGrzegorz Bizon2017-03-061-1/+0
| |
* | Fix specs for environments with manual actionsGrzegorz Bizon2017-03-061-1/+1
| |
* | Refactor code related to pipeline blocking actionsGrzegorz Bizon2017-03-061-0/+4
| |
* | Improve build retry service tests for cloning dataGrzegorz Bizon2017-03-011-0/+8
| |
* | Fix runner tags assignment when retrying a jobGrzegorz Bizon2017-03-011-0/+4
|/
* Merge branch 'master' into fix/gb/pipeline-retry-builds-startedGrzegorz Bizon2017-02-171-0/+12
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (313 commits) Allow slashes in slash command arguments Add API endpoint to get all milestone merge requests remove trailing comma Restore pagination to admin abuse reports replace deprecated NoErrorsPlugin with NoEmitOnErrorsPlugin only compress assets in production Reduce number of pipelines created to test pagination add CHANGELOG.md entry for !8761 prevent diff unfolding link from appearing for deleted files fix build failures only show diff unfolding link if there are more lines to show fix typo in node section Only yield valid references in ReferenceFilter.references_in Cache js selectors; fix css move "Install node modules" step before "Migrate DB" within update process Renders pagination again for pipelines table update migration docs for 8.17 to include minimum node version Add CHANGELOG file Fix positioning of top scroll button Remove comments in migration ...
| * Adding links to user & build in Chat NotificationsPoornima M2017-01-251-0/+12
| |
* | Make build clone/retry implementation more robustfix/gb/pipeline-retry-builds-startedGrzegorz Bizon2017-02-161-1/+12
|/
* Convert CI YAML variables keys into stringsLin Jen-Shin2016-12-151-1/+1
| | | | | | | So that this would be more consistent with the other variables, which all of them are string based. Closes #25554
* Add tests for build play extended detailed statusGrzegorz Bizon2016-12-121-3/+10
|
* Merge remote-tracking branch 'upstream/master' into fix-cancelling-pipelinesLin Jen-Shin2016-11-221-0/+6
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * upstream/master: (133 commits) Restructure steps for MM slash commands service Add Changelog entry for CI linter validation fix Fix entry lookup in CI config inheritance rules Extend specs for global ci configuration entry Remove unnecessary require_relative calls from service classes Use single quote for strings Ue svg from SVGs object Dont trigger CI builds [ci skip] Revert "Test only migrations" Add custom copy for each empty stage Refactor Mattermost slash commands docs Fetch only one revision Highlight nav item on hover Test only migrations Fix migration paths tests Scroll CA stage panel on mobile Fix CSS declaration administer to administrator Move SVGs to JS objects for easy reuse Improve deploy command message ...
| * Introduce deploy command that allows to start deployment from one ↵chatops-deploy-commandKamil Trzcinski2016-11-211-0/+6
| | | | | | | | environment to second one
* | Add a lot of tests for scopes, feedback:Lin Jen-Shin2016-11-191-0/+4
|/ | | | https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7508#note_18622499
* Pre-create all builds for Pipeline when a trigger is receivedKamil Trzcinski2016-08-111-0/+5
| | | | | | | | | | | This change simplifies a Pipeline processing by introducing a special new status: created. This status is used for all builds that are created for a pipeline. We are then processing next stages and queueing some of the builds (created -> pending) or skipping them (created -> skipped). This makes it possible to simplify and solve a few ordering problems with how previously builds were scheduled. This also allows us to visualise a full pipeline (with created builds). This also removes an after_touch used for updating a pipeline state parameters. Right now in various places we explicitly call a reload_status! on pipeline to force it to be updated and saved.
* Check for Ci::Build artifacts at database levelPaco Guzman2016-07-291-0/+16
|
* Use value of `yaml_variables` and `when` from config_processor if undefinedKamil Trzcinski2016-07-191-0/+2
|
* Improve manual actions code and add model, service and feature testsKamil Trzcinski2016-07-181-0/+5
| | | | | | | | Manual actions are accessible from: - Pipelines - Builds - Environments - Deployments
* Store when and yaml variables in builds tableKamil Trzcinski2016-07-161-0/+5
|
* Rename all `[ci_]commit` to `[ci_]pipeline` in specs and featuresKamil Trzcinski2016-06-031-1/+1
|
* Try to use `pipeline` where applicableKamil Trzcinski2016-06-031-1/+1
|
* Rename Ci::Build commit to pipelineKamil Trzcinski2016-06-031-1/+1
|
* Move all factory definitions to their own fileRobert Speicher2016-03-041-0/+2
|