Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Homebrew formula for installing FreeSWITCH that I wrote tonight. Unsure of best way to automatically "test" FreeSWITCH. Thoughts?
require 'formula'
class Freeswitch < Formula
url ''
homepage ''
md5 'bb0aa3a04479f06caa8815530ca22d05'
version '1.0.8.alpha'
depends_on 'cmake'
depends_on 'jpeg'
depends_on 'spidermonkey'
def install
system "./"
system "./configure", "--enable-shared", "--enable-static",
system "make"
system "make install"
system "make cd-sounds-install"
system "make cd-moh-install"
def test
# this will fail we won't accept that, make it test the program works!
system "/usr/bin/false"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment