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

Add Chakra formula #5

Merged
merged 1 commit into from
Jun 21, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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