summaryrefslogtreecommitdiff
path: root/spec/models
Commit message (Collapse)AuthorAgeFilesLines
* Remove old should syntax from specRobert Speicher2015-09-161-2/+2
|
* Merge branch 'rs-rspec3' into 'master'Valery Sizov2015-09-0816-334/+304
|\ | | | | | | | | | | | | | | 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-3014-202/+202
| | | | | | | | | | | | | | Command: transpec -c 'bundle exec rspec spec -t ~feature' \ -o should,oneliner,should_receive
| * Use `described_class` where appropriateRobert Speicher2015-08-3011-24/+24
| |
| * Update `stub` syntax usagesRobert Speicher2015-08-308-47/+33
| |
| * 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-308-44/+44
| |
| * Don't use `raise_error` without a parameterRobert Speicher2015-08-302-4/+4
| |
| * Don't `describe` symbolsRobert Speicher2015-08-307-38/+38
| |
| * `be_(false|true)` -> `be_(falsey|truthy)`Robert Speicher2015-08-307-37/+37
| |
| * Update any_instance usagesRobert Speicher2015-08-301-5/+5
| |
* | Fix commits ordering when using PostgreSQLfix-commits-ordering-for-postgresqlKamil Trzcinski2015-08-261-0/+18
|/
* Retrigger builds with [ci skip]Kamil Trzcinski2015-08-211-0/+15
|
* Create specs for build triggersKamil Trzcinski2015-08-213-9/+95
|
* Initial support for build triggersKamil Trzcinski2015-08-213-30/+53
|
* Add committed_at to commits to properly order last commit (the force push issue)Kamil Trzcinski2015-08-211-2/+2
|
* Fix service testingKamil Trzcinski2015-08-031-24/+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
* Merge branch 'build-types' into 'master'Kamil Trzciński2015-07-131-4/+13
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-101-4/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ``` 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
|
* Allow to defined per-job allow_failure parameterallow-per-job-failureKamil Trzcinski2015-07-083-34/+57
| | | | It allows to ignore status of specific job when computed for commit
* Update annotationsannotationsKamil Trzcinski2015-07-065-10/+35
|
* Added annotationsKamil Trzcinski2015-07-061-0/+1
|
* Added support for image and servicesKamil Trzcinski2015-07-061-0/+14
|
* Rounded coverage on commit pageValery Sizov2015-07-011-2/+2
|
* Improved validation of .gitlab-ci.ymlValery Sizov2015-06-292-2/+2
|
* fix coverage calculation on commit pageValery Sizov2015-06-261-0/+23
|
* New syntax of gitlab-ci.ymlValery Sizov2015-06-123-3/+3
|
* Merge branch 'jobs_in_yml' into 'master'Dmitriy Zaporozhets2015-06-036-163/+128
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CI configuration with .gitlab-ci.yml https://dev.gitlab.org/gitlab/gitlab-ci/issues/245 Example: ``` # Refs to skip skip_refs: “deploy*” # Run before each script before_script: - export PATH=$HOME/bin:/usr/local/bin:/usr/bin:/bin - gem install bundler - cp config/database.yml.mysql config/database.yml - cp config/gitlab.yml.example config/gitlab.yml - touch log/application.log - touch log/test.log - bundle install --without postgres production --jobs $(nproc) - bundle exec rake db:create RAILS_ENV=test # Parallel jobs, each line is parallel build jobs: - script: “rake spec” runner: “ruby,postgres” name: “Rspec” - script: “rake spinach” runner: “ruby,mysql” name: “Spinach” tags: true branches: false # Parallel deploy jobs deploy_jobs: “cap deploy production” “cap deploy staging” ``` See merge request !110
| * fix specsValery Sizov2015-06-034-116/+127
| |
| * cleaning upValery Sizov2015-06-033-47/+1
| |
| * proof of concept yml configurationValery Sizov2015-06-032-2/+2
| |
* | replace YAML with JOSN on dashboardValery Sizov2015-06-031-3/+2
|/
* Add no runners notificationValery Sizov2015-05-151-0/+25
|
* Refactoring. Clean up advanced settings. Migrate from gotlab_url to pathValery Sizov2015-05-042-9/+3
|
* Fix notification issues on HipChatService, add HipChatMessage specsHoward P. Logsdon2015-04-302-1/+79
| | | | | | | | | | | | | | adding specs for HipChatMessage exposed some issues with the way I was building the matrix-commit style notification message, so it ended up being quite a bit more changes than I expected. The save call from the service configure form submits an empty string as the server URL if left blank, which I've indicated to do in order to use the default server, but Hash#merge will happily overwrite a full string with a blank string if asked, so we need to break that out, along with the worker options which get mutated into string hash keys, of which the HipChat client seems to not understand. Additionally, add another spec to make sure we call the Sidekiq worker with expected arguments.
* HipChat Notification ServiceHoward P. Logsdon2015-04-303-0/+48
| | | | | | | | | | | | | * Move existing Slack service spec into a subdir, mirroring /app * Wire up HipChat service to the project and services controller. * Split the message building into own class. * 'namespace' room and token variables. * Enforce v2 client (bug in HipChat gem v1.5.0. fixed in 1.5.1). Note that I'm using the same version string as GitLab-CE, for shared installations. * Defer execution to a notifier worker, like the Slack service. * Ensure passing specs (basically a Slack service spec copy, fwiw) * Added change to the CHANGELOG
* Fix 'ci skip' tagValery Sizov2015-04-281-14/+0
|
* Merge branch 'refactoring_user_url' into 'master'Dmitriy Zaporozhets2015-04-231-2/+2
|\ | | | | | | | | | | | | | | Refactoring network related code https://dev.gitlab.org/gitlab/gitlab-ci/issues/139 See merge request !74
| * refactoring network related coderefactoring_user_urlValery Sizov2015-04-221-2/+2
| |
* | Merge branch 'duration' into 'master'Valery Sizov2015-04-231-0/+18
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix duration visualisation https://dev.gitlab.org/gitlab/gitlab-ci/issues/174 https://github.com/gitlabhq/gitlab-ci/issues/565 See merge request !78
| * | fix duration visualisationValery Sizov2015-04-231-0/+18
| |/
* | runner page: specsValery Sizov2015-04-212-3/+57
|/
* annotatecleanupValery Sizov2015-04-172-6/+2
|
* Merge branch 'protected_attributes' into 'master'Dmitriy Zaporozhets2015-04-093-19/+0
|\ | | | | | | | | | | | | | | Remove protected attributes https://dev.gitlab.org/gitlab/gitlab-ci/issues/165 See merge request !60
| * remove protected attributesValery Sizov2015-04-093-19/+0
| |