Skip to content

Instantly share code, notes, and snippets.

@oryband
Last active December 31, 2017 12:27
Show Gist options
  • Save oryband/2f868dc389e3b47463f3904c480edd0d to your computer and use it in GitHub Desktop.
Save oryband/2f868dc389e3b47463f3904c480edd0d to your computer and use it in GitHub Desktop.
Kin Mobile SDK on Ethereum - Makefile
# default target does nothing
.DEFAULT_GOAL: default
default: ;
# add truffle and testrpc to $PATH
export PATH := ./node_modules/.bin:$(PATH)
test:
xcodebuild test -project KinSDK/KinSDK.xcodeproj \
-scheme KinTestHost \
-sdk iphonesimulator \
-destination 'platform=iOS Simulator,name=iPhone 6'
.PHONY: test
prepare-tests: truffle
truffle/scripts/prepare-tests.sh
.PHONY: prepare-tests
truffle: testrpc truffle-clean
truffle/scripts/truffle.sh
.PHONY: truffle
truffle-clean:
rm -f truffle/token-contract-address
testrpc: testrpc-run # alias for testrpc-run
.PHONY: testrpc
testrpc-run: testrpc-kill
truffle/scripts/testrpc-run.sh
.PHONY: testrpc-run
testrpc-kill:
truffle/scripts/testrpc-kill.sh
.PHONY: testrpc-kill
clean: truffle-clean testrpc-kill
rm -f truffle/truffle.log
rm -f truffle/testrpc.log
.PHONY: clean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment