-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI for homebrew binary formula (#108)
* Create homebrew formula for installing mac binary * Ignore gh-pages branch * Fix binary path * Add test for formula. * Correct working directory * Correct copy command * Correct git commands * Add write deploy key for homebrew tap. * Test the local formula before push * Rejig to depend on release. Remainder must be developed and released on master
- Loading branch information
Showing
2 changed files
with
106 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/usr/bin/env eu | ||
|
||
{ import: ["package=package.yaml" | ||
,"sha=text@eucalypt-x86_64-osx.tgz.sha"] } | ||
|
||
nest-in(pre, post, lines): | ||
{ content: lines map(" {}") }.(["", pre] ++ content ++ [post, ""]) | ||
|
||
q: ch.dq | ||
|
||
hash: sha head str.extract("^(\S+)\s.*$") | ||
|
||
metadata: { | ||
version: package.version | ||
desc: "Eucalypt (eu) tool for generating, templating and processing YAML, JSON, TOML" | ||
homepage: "https://curvelogic.github.io/eucalypt/" | ||
url: "https://github.com/curvelogic/eucalypt/releases/download/{version}/eucalypt-x86_64-osx.tgz" | ||
sha256: hash | ||
} map-kv("{0} {q}{1}{q}") | ||
|
||
bottle: ["bottle :unneeded"] | ||
|
||
install: nest-in("def install", "end", ["bin.install {q}eu{q}"]) | ||
|
||
test: [ "expected = {q}Eucalypt (Haskell Impl: v#{{package.version}}){q}" | ||
, "assert_equal expected, `#{{bin}}/eu --version`.strip"] | ||
nest-in("def test", "end") | ||
|
||
` { target: :main format: :text } | ||
main: | ||
(metadata ++ bottle ++ install ++ test) | ||
nest-in("class Eucalypt < Formula", "end") |