Commit Graph

32 Commits

Author SHA1 Message Date
Z.J. van de Weg 8877f2e8c1 Reword success to passing for pipeline badges 2017-07-21 10:22:11 +02:00
Z.J. van de Weg 2086483b24 Rename build to pipeline for status badges
First commit in probably 2, for resolve gitlab-org/gitlab-ce#15582. This
commit is renaming files and classes from build to pipeline. Also
wording is editted to pipeline. Given `pipeline` had more characters
than `build`, I've made the field a bit wider. The width now matchers
the one for the coverage badge, so they look nice when in a table
format, or in a list.

As soon as this commit is merged to master, and released, the build.svg
is deprecated, meaning that all users which already placed a badge
should update it. However, to make sure it keeps working tests are added
for this case.
2017-07-21 10:22:09 +02:00
Douwe Maan c81928cfa7 Include new URL helpers retroactively into includers of Gitlab::Routing 2017-07-07 10:43:37 -05:00
Douwe Maan fe13f11041 Create and use project path helpers that only need a project, no namespace 2017-07-05 11:11:59 -05:00
Douwe Maan 56de781a2c Revert "Enable Style/DotPosition"
This reverts commit e00fb2bdc2090e9cabeb1eb35a2672a882cc96e9.

# Conflicts:
#	.rubocop.yml
#	.rubocop_todo.yml
#	lib/gitlab/ci/config/entry/global.rb
#	lib/gitlab/ci/config/entry/jobs.rb
#	spec/lib/gitlab/ci/config/entry/factory_spec.rb
#	spec/lib/gitlab/ci/config/entry/global_spec.rb
#	spec/lib/gitlab/ci/config/entry/job_spec.rb
#	spec/lib/gitlab/ci/status/build/factory_spec.rb
#	spec/lib/gitlab/incoming_email_spec.rb
2017-02-23 09:33:19 -06:00
Douwe Maan 1fe7501b49 Revert "Prefer leading style for Style/DotPosition"
This reverts commit cb10b725c8929b8b4460f89c9d96c773af39ba6b.
2017-02-23 09:33:05 -06:00
Douwe Maan 206953a430 Prefer leading style for Style/DotPosition 2017-02-23 09:32:22 -06:00
Douwe Maan b7d8df503c Enable Style/MutableConstant 2017-02-23 09:31:56 -06:00
Douwe Maan 3dadf306dd Enable Style/DotPosition 2017-02-23 09:31:56 -06:00
Jan Christophersen 95ed01749e Add AsciiDoc snippet for CI/CD Badges
This commit adds CI/CD Badges Snippets for AsciiDoc as requested in #26087.
I've however run into an issue in highlighting the snippet, it seems as if AsciiDoc is currently not being highlighted properly (displayed as plaintext)

Add testcase for to_asciidoc

Update test case for Badges list
2017-02-20 16:37:44 +01:00
Lin Jen-Shin f463ef5ec5 Also use latest_status, feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7333#note_20058857
2016-12-15 18:12:33 +08:00
Lin Jen-Shin 101cde38cf Use Ci::Pipeline#latest for finding pipelines
Feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7333#note_18861407
2016-11-24 18:41:45 +08:00
Lin Jen-Shin 3a8fb95c98 Fix tests 2016-08-26 15:40:12 +08:00
Grzegorz Bizon 42496ecef7 Render coverage badge for latest successful pipeline 2016-08-18 16:30:43 +02:00
Grzegorz Bizon b13e1d795a Add small corrections to test coverage report badge 2016-08-15 14:39:46 +02:00
Grzegorz Bizon 3e481f154f Add metadata and template methods for coverage badge 2016-08-15 14:39:46 +02:00
Grzegorz Bizon dbb9d6a726 Extract base abstract template for badges 2016-08-15 14:39:46 +02:00
Grzegorz Bizon 796efcc704 Add template class for coverage report badge 2016-08-15 14:39:46 +02:00
Grzegorz Bizon cc244160c5 Extract the abstract base class of badge metadata 2016-08-15 14:39:46 +02:00
Grzegorz Bizon 7b840c8483 Add coverage report badge metadata class 2016-08-15 14:39:46 +02:00
Grzegorz Bizon f0ff1bfdcc Implement the main class of test coverage badge 2016-08-15 14:39:46 +02:00
Grzegorz Bizon f3de46e6b0 Refactor badge template and metadata classes 2016-08-15 14:39:46 +02:00
Grzegorz Bizon 9f0b46c05a Move badges to separate modules and add base class 2016-08-15 14:39:46 +02:00
Grzegorz Bizon 6f0b5800a9 Add empty test coverage badge class and specs 2016-08-15 14:39:46 +02:00
Grzegorz Bizon 89f2be7d58 Improve indentation in svg badge template 2016-08-08 13:12:47 +02:00
Grzegorz Bizon bc17996227 Improve builds badge specs, remove legacy methods 2016-08-08 12:38:36 +02:00
Grzegorz Bizon 1b5e2303de Use new badge template to render build status badge 2016-08-08 10:05:52 +02:00
Grzegorz Bizon 503c44ee2a Add badge template class to use with SVG ERB template 2016-07-28 15:30:05 +02:00
Grzegorz Bizon 0c4fa8619c Calculate build status only in build badge class 2016-07-28 14:58:53 +02:00
Grzegorz Bizon 9ae1ecf876 Extract build status badge metadata to separate class 2016-07-28 14:35:02 +02:00
Grzegorz Bizon b7fa7c4d59 Extend build status badge, add html/markdown methods 2016-04-06 19:56:34 +02:00
Grzegorz Bizon 4cd1b9f4d8 Refactor builds badge, encapsulate inside a class 2016-03-29 09:01:19 +02:00