forked from lightstep/lightstep-tracer-java-common
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (29 loc) · 1.17 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
.PHONY: build publish ci_test clean test inc-version
build: test
mvn package
clean:
mvn clean
test: ci_test
# CircleCI test
ci_test: clean
mvn test
inc-version:
./inc-version.sh
# See https://bintray.com/lightstep for published artifacts
# You must have the following entry in your settings.xml of your .m2 directory
# This matches the distributionManagement/repository defined in the pom.xml
#
# <server>
# <id>lightstep-bintray</id>
# <username>xxx</username>
# <password>xxx</password>
# </server>
#
publish: build
@test -n "$$BINTRAY_USER" || (echo "BINTRAY_USER must be defined to publish" && false)
@test -n "$$BINTRAY_API_KEY" || (echo "BINTRAY_API_KEY must be defined to publish" && false)
@test -n "$$MAVEN_CENTRAL_USER_TOKEN" || (echo "MAVEN_CENTRAL_USER_TOKEN must be defined to publish" && false)
@test -n "$$MAVEN_CENTRAL_TOKEN_PASSWORD" || (echo "MAVEN_CENTRAL_TOKEN_PASSWORD must be defined to publish" && false)
@test -n "$$BINTRAY_GPG_PASSPHRASE" || (echo "$$BINTRAY_GPG_PASSPHRASE must be defined to publish" && false)
@git diff-index --quiet HEAD || (echo "git has uncommitted changes. Refusing to publish." && false)
./tag-and-deploy.sh