Commit Graph

1625 Commits

Author SHA1 Message Date
Paul Melnikow
0068f31af2 In PR's, exclusively run the designated service tests e.g. [cran discord] (#1111)
The intended behavior of the bracketed [github], [bower], [discord] service names in the pull request title is to trigger the designated service tests. That way, affected services can be proven working during code review, without needing to run tests on a dev machine, nor running all the slow (and flaky) service tests.

Example pull request titles:

- [Travis] Fix timeout issues
- [Travis Sonar] Support user token authentication
- [CRAN CPAN CTAN] Add test coverage

The observed behavior is that, whenever bracketed service names are provided, all of the service tests run.

This is due to a Mocha limitation, which is that exclusive tests (it.only and describe.only) can only be applied synchronously. In other words, if we try to fetch the PR title and then add exclusive tests in the callback, all the tests will run anyway. This is true even when using _mocha --delay, as we are, and is true whether I use request or node-fetch.

Undoubtedly this could be fixed, though it's not worth it. The problem is obscure and therefore low priority for Mocha, which is quite backlogged.

And, there is an easy workaround, which is to generate the list of services to test in a separate process.

The pull request script test:services:pr is now split into two parts. First the :prepare script infers the pull request context, fetches the PR title, and writes the list of affected services to a file. Then the :run script reads the list of affected services and runs the appropriate tests.

In addition to sidestepping the Mocha bug, this setup makes it easier to reason about and debug these two steps of the test runner on a dev machine, and since I can't get pipefail to work – and want to be able to run the steps separately – I'm not using Node's built in pre scripts.

Overall, separating these concerns this makes the test runner easier to reason about.
2017-10-01 20:03:29 -04:00
Paul Melnikow
5d68488426 New http endpoint for [Codecov] badges (#1037) 2017-10-01 19:56:12 -04:00
Danial
31afb007d9 [Github] manifest/package.json version support (#739) 2017-10-01 18:39:23 -04:00
Paul Melnikow
d1906598dd /ansible/role-download -> /ansible/role/d + update try.html 2017-09-30 17:42:33 -04:00
Federico Capoano
32c5ec8a6e Added ansible-galaxy role download count badge + tests #1004
Closes #1004.
2017-09-30 17:42:16 -04:00
Ritwick Dey
f6a2e2c9e3 [Bower] Add tests and prerelease badge (#1099) 2017-09-30 12:10:37 -04:00
Roman Vaughan
ea107fc76e Add AppVeyor tests badge + new tests (#1065) 2017-09-30 12:07:21 -04:00
Ritwick Dey
79174d4cfc [waffle] colorB fixes & test added (#1110)
Close #1008
2017-09-29 12:49:46 -04:00
Paul Melnikow
47ba81a007 Support named logos and omit logos by default (#1092)
- Except for social badges, omit logos by default (#983)
- Omit the logo from a social badge using the query string: `?logo=`
  (#983)
- Opt in to named logos using the query string: `?logo=appveyor`
- Provide custom logo data as before: `?logo=data:image/png;base64,...`
- Rewrite badge data functions, with unit tests

Unit tests are covering the new code very well, though the underlying
functionality (logos) is untested.

Close #983
2017-09-28 10:47:39 -04:00
Paul Melnikow
450d861ee5 Fix Github rate limiting in CI, again
The test harness calls out to Github too.
2017-09-28 10:04:03 -04:00
Mike Kobit
949c50d328 Add in text snippet for AsciiDoc image macro
closes https://github.com/badges/shields/issues/1104
2017-09-27 21:33:31 -04:00
James Z.M. Gao
e2ee910383 Add support for sonatype nexus (#1017)
Close #783
2017-09-27 20:48:51 -04:00
Paul Melnikow
6287c65104 mkdir first 2017-09-28 10:42:57 +10:00
Paul Melnikow
254c55f630 Fix Github rate limits in CI
Close #979
2017-09-28 10:42:57 +10:00
Marcin Mielnicki
5278816229 Badge to show downloads count from [jetbrains] plugin repository v2 (#1025)
Close #895
2017-09-27 20:39:13 -04:00
Danial
f8829475e7 [chrome-web-store] Add tests, update labels (#1100)
- Update 'downloads'->'users' as label,
- added `/u/` as option
- kept `/d/` as an option for backwards compatibility
- moved example from 'Downloads'->'Misc' section

Closes #1016
2017-09-27 20:34:15 -04:00
RedSparr0w
76a963369a Fix Windows coverage errors
Provide relative path to `_mocha`
2017-09-27 20:22:31 -04:00
Pierre Tomasina
6e20ca20c7 fix(continuousphp) link badge example 2017-09-27 20:05:12 -04:00
Ritwick Dey
c1425e6f44 Discord social button added at very bottom of the page (#1096)
Close #985
2017-09-26 23:30:59 -04:00
Thaddee Tyl
fa499da05f Remove automatic Travis CI email notification 2017-09-26 21:12:04 +02:00
Ritwick Dey
8476024c6c fixed ColorB issue for Docker Badge 2017-09-26 11:00:22 -04:00
Ritwick Dey
3e6ba16265 Add badge for Visual Studio Marketplace (#1074) 2017-09-25 23:05:18 -04:00
Danial
557269304c [amo] Custom labels & tests (#1090)
Add tests

Fix #996 #1026
2017-09-25 22:54:11 -04:00
un.def
4104f822fd [LuaRocks] package version badge (#1087) 2017-09-25 20:28:14 -04:00
Danial
65d6dc27cd Fix maintenance badge (#1089)
Solves #1073
Add test
2017-09-25 18:57:22 -04:00
Thaddee Tyl
ea6acb0c5e Mention loss of service for download PyPI badges
As suggested by
https://github.com/badges/shields/issues/716#issuecomment-301335162
2017-09-24 22:50:29 +02:00
Paul Melnikow
8e6fe01d20 Add test for measure-text 2017-09-24 22:36:14 +02:00
Thaddee Tyl
3d39cda984 Detail open / close on raw GitHub badges 2017-09-24 22:30:56 +02:00
Thaddee Tyl
8046a44842 Merge branch 'github-fullsupport' 2017-09-24 22:13:27 +02:00
Thaddee Tyl
26093d86d3 Add raw GitHub badges for closed issues and pr 2017-09-24 22:13:19 +02:00
Dag Wieers
4f2623aea4 Get rid of repeated "closed"
This PR includes:
- Getting rid of the option that includes 2x closed
- Using -closed-raw is no longer useful
2017-09-24 22:05:38 +02:00
Kevin Yap
c1a8166af2 Fix [crates] license badge (#1062)
License data was moved to crate versions in rust-lang/crates.io#803.
2017-09-23 23:36:34 -04:00
triggerman722
20ab540fb2 Added [codetally] (#1069) 2017-09-23 21:08:50 -04:00
Dag Wieers
22694e6cb7 Add the label to the badge when not using -raw
As requested, we now add the GitHub label to the badge, only if not
specifying `-raw` in the URL.
2017-09-23 10:05:05 +02:00
Dag Wieers
e0ecadd9fe Github: Support PR/issues with labels, full count
The original code has been simplified as well, but commented out.
I don't think we need the original code using the issues API, as it has
some limitations (no label support, only up to 30, or 100 issues).
2017-09-23 10:04:24 +02:00
Réda Housni Alaoui
13502b3a22 [maven-central] Add the ability to filter by version prefix (#1014) 2017-09-22 15:16:51 -04:00
Paul Melnikow
8ec2b6be51 Populate Github service tests (#976)
Work by webcaetano (cherry-picked by paulmelnikow)
2017-09-22 14:29:57 -04:00
Paul Melnikow
eefca67f14 Avoid inadvertently invoking unwrapped request in vendor helper functions (#924)
- Tweak a couple names to improve readability
2017-09-22 14:08:45 -04:00
Nico Schlömer
60105e1099 github "star" -> "stars" 2017-09-22 13:57:24 -04:00
Theodore Dubois
56566efd57 Add GitHub search hit counter badge 2017-09-22 13:41:49 -04:00
Abdelkrime Aries
0f65d86486 Add JitPack version badge; fixes #900 2017-09-22 13:35:10 -04:00
Christophe Bliard
cafb66bd93 Add fallback font and missing libs for .png generation
If Verdana.ttf can't be loaded, the font file pointed by the
FALLBACK_FONT_PATH environment variable will be loaded.

This fixes width computation errors that can occur with non-latin
characters when running with Docker.
2017-09-22 13:27:59 -04:00
Pascal Paulis
c7b782b014 Add [continuousphp] integration (#1051) 2017-09-22 13:19:55 -04:00
teppeis
9a3bbcdb2a fix: contributors for GitHub Enterprise 2017-09-22 01:11:50 -04:00
Paul Melnikow
852784b1a2 Fetch Bower data using libraries.io (#919)
- Avoid downloading bower packages via git
- Service is well resourced: https://libraries.io/team
- Same service used by https://bower.io/search/
2017-09-17 23:55:07 +02:00
Igor Šarčević
bce78921c8 Changing 'semaphoreapp.com' to 'semaphoreci.com' 2017-09-10 15:45:11 -07:00
Andre Caetano
46072e641d file-size path fix 2017-09-10 15:40:56 -07:00
Thaddee Tyl
fc6c5852b2 Use a ternary statement in logging code
See https://github.com/badges/shields/pull/1040#discussion_r136196343.

Closes #1040.
2017-09-03 20:04:41 +02:00
Thaddee Tyl
d032090038 Use a custom logging mechanism
This mechanism eases knowing when a message was logged while keeping the
simplicity of the logging mechanism.
2017-08-30 22:03:30 +02:00
mattbk
c023e23e0f Change Gratipay 'tips' to 'receives'
Pull request: #1053.
2017-08-30 21:58:08 +02:00