Skip to content

Commit

Permalink
build: Additional make recipes to make life a bit easier (#174)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajfisher authored Oct 5, 2020
1 parent 0444aaa commit 690d972
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,23 @@ help:
@echo "install: Installs all of the packages"
@echo "lint: Runs the linter"
@echo "test: Runs all of the tests"
@echo "test [12,14]: Runs the tests for a particular node target"
@echo ""
@echo "Build actions:"
@echo "--------------"
@echo "build: Builds all of the codebase"
@echo "compile: Compiles all of the binaries"
@echo "compile <tgt>: Compiles the binaries for a particular target board eg uno, nano"
@echo ""
@echo "Release actions:"
@echo "----------------"
@echo "release: Tags and releases code to NPM"
@echo "release-test: Does a dry run version of the release"
@echo "release: Builds a version, create tags and update changelog"
@echo "publish: Pushes tags to github and publish to npm"
@echo ""
@echo "CI actions:"
@echo "----------------"
@echo "test-ci: Runs the test suite against local node version for CI matrix builds"
@echo ""

clean: clean-node clean-build clean-compiled
Expand Down Expand Up @@ -138,7 +146,11 @@ $(BOARD_TGTS):
$$ARDUINO_PATH --verify --verbose-build --board $(PKG_$@) \
--pref build.path=$(BIN_DIR)/backpack/$@ $(BACKPACK_INO)

test-release:
npm run release -- --dry-run

release:
npm run release


publish:
git push --follow-tags origin master && npm publish

0 comments on commit 690d972

Please sign in to comment.