• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

wooga / atlas-build-unity / 37
25%
master: 78%

Build:
Build:
LAST BUILD BRANCH: PR-154
DEFAULT BRANCH: master
Ran 26 Jan 2021 03:22PM UTC
Jobs 3
Files 47
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
37

push

jenkins

Add macOS security helper lib (#91)

Description
===========

This is a rather big patch and is the culmintion of a few days of back
and forth with myself how to best implement and test
gradle tasks that work agains the macOS keychain with
the `security` commandline tool.

The issue is the Hen&Egg problem that arrises when one has to
write test code that uses the same/or similar code to verify the result.

Example:
If I want to test if a *create-keychain* tasks works I need to implement
a logic in the test code that will call the same cli tool that the task just used.
Even worth, if I then want to implement a *delete-keychain* task I need to write test code
to create keychains in the first place. To move this to fixums is a bad idea I think.

So I decided to split things up a little bit.

```
+--------------------+            +-----------------+
| macOS security lib +<-----------+ spock extension |
+---------------+----+            +-------^---------+
                ^                         |
                |                         |
                |                         |
                |                         |  unit/integration test
                |                         |
          +-----+-------------------+-----+
          | gradle security plugin  |
          +-------------------------+
```

The gradle plugin will not call the `security` tool directly. It will use a helper
library with utility methods to do so. All tests will be written with a custom
spock extension that helps with creating keychain test fixums at runtime.
This extension will also use and expose the same utility API.

This allows me to write the main implementation once and I can reuse it later
for other tasks like validation steps etc.

This patch brings in this helper library. It contains already a list of command classes.
I also added a helper class `MacOsKeychain` to present an OOP orientated interface.

Chagnes
===... (continued)

1558 of 1689 relevant lines covered (92.24%)

1.7 hits per line

Jobs
ID Job ID Ran Files Coverage
1 37.1 26 Jan 2021 03:22PM UTC 0
38.78
2 37.2 26 Jan 2021 03:23PM UTC 0
92.13
3 37.3 26 Jan 2021 03:25PM UTC 0
38.78
Source Files on build 37
Detailed source file information is not available for this build.
  • Back to Repo
  • Jenkins Build #37
  • 7cf39ba3 on github
  • Prev Build on release/1.x (#35)
  • Next Build on release/1.x (#38)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc