Debian Codegraph @

Makefile

raw
1 JP_VERSION=""
2
3
4 all: build test
5
6 build:
7 go build ./...
8
9 test:
10 # CLI specific test cases.
11 test/vendor/bats/libexec/bats test/cases
12 # JMESPath compliance tests, using the jp-compliance
13 # runner from github.com/jmespath/jmespath.test
14 test/jp-compliance -d test/compliance/ -e ./jp
15
16 # This will create/tag a new release locally, but not push anything.
17 # The workflow for a new release is:
18 #
19 # 1. $ make new-release JP_VERSION=1.0.0
20 # < you'll get prompted for a few things >
21 #
22
23 # 2. $ git push origin master --tags
24 #
25 #
26 # 3. Go to github and create a release
27 # Right now, the last step isn't automated. You still
28 # have to manually upload the release assets from build/.
29 new-release:
30 scripts/bump-version $(JP_VERSION)
31 git add jp.go && git commit -m "Bumping version to $(JP_VERSION)"
32 git tag -s -m "Tagging $(JP_VERSION) release" $(JP_VERSION)
33 scripts/build-all-platforms
34 scripts/sign-all
35
36 .PHONY: help test build