-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* deletion first implementation * binary * http.MethodDelete
- Loading branch information
1 parent
2e29883
commit 0dfd872
Showing
8 changed files
with
197 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
language: go | ||
go: | ||
- 1.5 | ||
- 1.6 | ||
- 1.7 | ||
- 1.8 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,42 @@ | ||
|
||
os=linux | ||
arch=amd64 | ||
GOOS?=$(shell uname -s | tr '[:upper:]' '[:lower:]') | ||
GOARCH?=amd64 | ||
|
||
test: | ||
go test ./... | ||
go test ./... | ||
nexus: | ||
docker run -d -p 8081:8081 --name nexus sonatype/nexus3 | ||
|
||
build: test | ||
GOOS=$(os) GOARCH=$(arch) go build -ldflags " \ | ||
GOOS=$(GOOS) GOARCH=$(GOARCH) go build -ldflags " \ | ||
-X github.com/sjeandeaux/nexus-cli/information.Version=$(shell cat VERSION) \ | ||
-X github.com/sjeandeaux/nexus-cli/information.BuildTime=$(shell date +"%Y-%m-%dT%H:%M:%S") \ | ||
-X github.com/sjeandeaux/nexus-cli/information.GitCommit=$(shell git rev-parse --short HEAD) \ | ||
-X github.com/sjeandeaux/nexus-cli/information.GitDescribe=$(shell git describe --tags --always) \ | ||
-X github.com/sjeandeaux/nexus-cli/information.GitDirty=$(shell test -n "`git status --porcelain`" && echo "+CHANGES" || true)" \ | ||
-o dist/$(os)_$(arch)_nexus_cli | ||
-o dist/$(GOOS)-$(GOARCH)-nexus-cli | ||
|
||
upload: | ||
touch upload.jar | ||
go run main.go -repo=http://localhost:8081/repository/maven-releases \ | ||
-user=admin \ | ||
-password=admin123 \ | ||
-action PUT \ | ||
-file=upload.jar \ | ||
-groupID=com.jeandeaux \ | ||
-artifactID=elyne \ | ||
-version=0.1.0 \ | ||
-hash md5 \ | ||
-hash sha1 | ||
|
||
delete: | ||
go run main.go -repo=http://localhost:8081/repository/maven-releases \ | ||
-user=admin \ | ||
-password=admin123 \ | ||
-file=upload.jar \ | ||
-action DELETE \ | ||
-groupID=com.jeandeaux \ | ||
-artifactID=elyne \ | ||
-version=0.1.0 \ | ||
-hash md5 \ | ||
-hash sha1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.4.0 | ||
0.5.0 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters