gitlab-org--gitlab-foss/spec/lib/gitlab
Douwe Maan ae63f152c3 Merge branch 'feature/svg-badge-template' into 'master'
Use badge image template instead of using separate images

## What does this MR do?

Makes it possible to use template for badge instead of having multiple files.

## Are there points in the code the reviewer needs to double check?

We also have a deprecated badge in `controllers/ci/projects_controller.rb`.  We decided to leave it until 9.0, so we still have images in `public/ci/` until 9.0.

## Why was this MR needed?

We are going to implement build coverage badge, and we do not want to store 101 SVG images for each percentage value.

## What are the relevant issue numbers?

#3714

## Screenshots (if relevant)

![new_build_badge](/uploads/f1d4ed5e34278eb01f48994b5b0579f1/new_build_badge.png)

## Does this MR meet the acceptance criteria?

- [ ] ~~[CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added~~ (refactoring)
- [ ] ~~[Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md)~~
- [ ] ~~API support added~~
- Tests
  - [x] Added for this feature/bug
  - [x] All builds are passing
- [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides)
- [x] Branch has no merge conflicts with `master` (if you do - rebase it please)
- [ ] ~~[Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits)~~ (refactoring)

See merge request !5520
2016-08-10 16:52:56 +00:00
..
backend Create (if necessary) and link the gitlab-shell secret file on the rake install task 2016-06-29 22:30:33 -04:00
badge Extend build badge specs to cover multiple pipelines 2016-08-09 13:33:19 +02:00
bitbucket_import Fix spec to set import_url before attempting to create import_data 2016-07-17 20:57:11 -07:00
ci Memoize CI config node validator to prevent leaks 2016-08-09 11:29:32 +02:00
database Fix spec Don't attempt to disable statement timeout on a MySQL DB 2016-07-14 20:55:33 -07:00
diff switch from diff_file_collection to diffs 2016-08-03 07:00:20 +02:00
downtime_check Added checks for migration downtime 2016-07-20 12:41:56 +02:00
email Introduce Compare model in the codebase. 2016-08-03 07:00:20 +02:00
fogbugz_import Enable Style/EmptyLines cop, remove redundant ones 2016-07-01 21:56:17 +02:00
gfm
git Enable some Rubocop cops related to new lines 2016-08-03 12:02:41 +02:00
github_import Prefixes removed branches name with PR number when importing PR from GH 2016-08-08 20:24:40 -03:00
gitlab_import Stub omniauth provider for GitLab 2016-07-13 11:35:38 -03:00
gitorious_import
google_code_import Enable Style/EmptyLines cop, remove redundant ones 2016-07-01 21:56:17 +02:00
graphs
import_export fix MR source project assignment 2016-08-09 11:03:02 +02:00
ldap adds second batch of tests changed to active tense 2016-08-09 15:11:39 +01:00
metrics Reduce instrumentation overhead 2016-07-28 16:56:17 +02:00
middleware
o_auth adds second batch of tests changed to active tense 2016-08-09 15:11:39 +01:00
saml adds second batch of tests changed to active tense 2016-08-09 15:11:39 +01:00
sanitizers
sherlock
sql
template Refactor Gitlab::Gitignores 2016-06-20 14:48:28 -05:00
akismet_helper_spec.rb Submit all issues on public projects to Akismet if enabled. 2016-07-26 15:17:52 -05:00
asciidoc_spec.rb adds second batch of tests changed to active tense 2016-08-09 15:11:39 +01:00
auth_spec.rb adds second batch of tests changed to active tense 2016-08-09 15:11:39 +01:00
award_emoji_spec.rb Fix emoji paths in relative root configurations 2016-07-01 09:10:12 -07:00
blame_spec.rb
build_data_builder_spec.rb Avoid `describe`-ing symbols in specs 2016-07-12 10:27:58 -05:00
closing_issue_extractor_spec.rb Don’t close issues on original project from a fork 2016-08-04 12:38:08 +02:00
color_schemes_spec.rb
current_settings_spec.rb Handle case when Redis cache returns an empty setting 2016-06-29 14:28:41 -07:00
database_spec.rb
downtime_check_spec.rb Added checks for migration downtime 2016-07-20 12:41:56 +02:00
exclusive_lease_spec.rb
git_access_spec.rb Fix ArgumentError in GitAccess specs 2016-08-04 15:22:34 +02:00
git_access_wiki_spec.rb Rename ENV['PROTOCOL'] to ENV['GL_PROTOCOL'] to conform to what GitLab Shell expects and make the `protocol` param in `GitAccess` mandatory. 2016-07-05 16:54:22 -05:00
highlight_spec.rb Fix specs 2016-08-01 13:24:06 +02:00
incoming_email_spec.rb
key_fingerprint_spec.rb
lazy_spec.rb
markup_helper_spec.rb
metrics_spec.rb Reduce instrumentation overhead 2016-07-28 16:56:17 +02:00
note_data_builder_spec.rb Add DiffNote model 2016-07-06 18:50:59 -04:00
popen_spec.rb Enable Style/UnneededCapitalW Rubocop cop 2016-06-30 13:31:52 +02:00
project_search_results_spec.rb adds second batch of tests changed to active tense 2016-08-09 15:11:39 +01:00
push_data_builder_spec.rb Enable Style/EmptyLines cop, remove redundant ones 2016-07-01 21:56:17 +02:00
redis_spec.rb Removed extra newline from redis_spec.rb 2016-08-10 13:05:41 +02:00
reference_extractor_spec.rb Remove JiraIssue model and replace references with ExternalIssue 2016-06-16 01:25:18 +03:00
regex_spec.rb
search_results_spec.rb adds second batch of tests changed to active tense 2016-08-09 15:11:39 +01:00
snippet_search_results_spec.rb
themes_spec.rb
upgrader_spec.rb adds second batch of tests changed to active tense 2016-08-09 15:11:39 +01:00
uploads_transfer_spec.rb
url_builder_spec.rb Add DiffNote model 2016-07-06 18:50:59 -04:00
url_sanitizer_spec.rb spec and fix for sanitize method 2016-07-11 09:01:09 +02:00
user_access_spec.rb changes default_branch_protection to allow devs_can_merge protection option aswell 2016-08-04 21:15:26 +01:00
version_info_spec.rb
workhorse_spec.rb