Skip to content
This repository has been archived by the owner on Dec 9, 2017. It is now read-only.

Commit

Permalink
Add Chakra formula
Browse files Browse the repository at this point in the history
Closes #5.
  • Loading branch information
mathiasbynens authored Jun 21, 2017
1 parent a1dcbc5 commit 7af6073
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ before_install:
- rm -rfv "${HOMEBREW_TAP_DIR}"
- ln -s "${PWD}" "${HOMEBREW_TAP_DIR}"
- export HOMEBREW_DEVELOPER="1"
- ulimit -n 1024

script:
- brew test-bot
- brew test-bot --no-bottle
git:
depth: 1
16 changes: 16 additions & 0 deletions Formula/chakra.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
class Chakra < Formula
desc "The core part of the Chakra JavaScript engine that powers Microsoft Edge"
homepage "https://github.com/Microsoft/ChakraCore"
url "https://aka.ms/chakracore/cc_osx_x64_1_5_1"
sha256 "8e85cfc21a693ae1b02373228a3a921485aa6567faa97dcdb904e030632b908b"

def install
lib.install "lib/libChakraCore.dylib"
bin.install "bin/ch" => "chakra"
end

test do
(testpath/"test.js").write("print('Hello!');\n")
assert_equal "Hello!", shell_output("#{bin}/chakra test.js").chomp
end
end

0 comments on commit 7af6073

Please sign in to comment.