Code Monkey home page Code Monkey logo

Comments (4)

andrewchang-bird avatar andrewchang-bird commented on August 17, 2024 1

Checking it in is the simplest option to pin the binary, but you can also download it or build it from source. For example, you could add a build phase that downloads the binary from the GitHub release artifacts (making sure to set the input and output files accordingly) which is basically what Cuckoo does with their run script.

set -eu

version=0.16.0
curl -Lo Mockingbird-cisafe.zip "https://github.com/birdrides/mockingbird/releases/download/${version}/Mockingbird-cisafe.zip"
unzip -o Mockingbird-cisafe.zip mockingbird

I do agree that this could be improved a bitβ€”either in terms of better docs or having a built-in way of pinning binaries.

from mockingbird.

menjoo avatar menjoo commented on August 17, 2024

I use CocoaPods and got it running on CI.

In the Test target "Generate Mockingbird Mocks" script, I had to change this:

set -e

mockingbird generate \
  --targets 'ArchitecturePlayground' \
  --outputs "${SRCROOT}/MockingbirdMocks/ArchitecturePlaygroundTests-ArchitecturePlaygroundMocks.generated.swift" \
  --support "${SRCROOT}/MockingbirdSupport"

# Ensure mocks are generated prior to running Compile Sources
rm -f '/tmp/Mockingbird-1130FD7D-40A7-4135-91F0-E30948B4CF3D'

To:

set -e

"${SRCROOT}/Pods/MockingbirdFramework/mockingbird" generate \
  --targets 'ArchitecturePlayground' \
  --outputs "${SRCROOT}/MockingbirdMocks/ArchitecturePlaygroundTests-ArchitecturePlaygroundMocks.generated.swift" \
  --support "${SRCROOT}/MockingbirdSupport"

# Ensure mocks are generated prior to running Compile Sources
rm -f '/tmp/Mockingbird-1130FD7D-40A7-4135-91F0-E30948B4CF3D'

Of course this only works if the binary was retrieved via Pods πŸ˜‰

from mockingbird.

menjoo avatar menjoo commented on August 17, 2024

the fact that you need to version a 35mb binary to your git (for your CI to run) is a real dealbreaker for me

I use CocoaPods and exclude the Pods folder in .gitignore. So the big binary is not in source control.

from mockingbird.

soucolline avatar soucolline commented on August 17, 2024

@menjoo thanks for the tip I'll give it a try πŸ™

from mockingbird.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.