-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8dd2c9e
commit 69921b0
Showing
7 changed files
with
71 additions
and
21 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,22 +1,15 @@ | ||
name: aerospike-client-rest | ||
|
||
dependency: | ||
- url: [email protected]:citrusleaf/aerospike-client-java | ||
dir: client/java | ||
ref: master | ||
|
||
container: | ||
- base: | ||
- docker.qe.aerospike.com/build/aerospike-client-java:openjdk-8 | ||
- docker.qe.aerospike.com/build/aerospike-client-rest:openjdk-8 | ||
|
||
build: | ||
- name: build | ||
script: | ||
- cd client/java | ||
- mvn install | ||
- cd ../.. | ||
- export aerospikeUseLocal=1 | ||
- ./gradlew bootwar | ||
- source ~/.bashrc | ||
- make package | ||
artifact: | ||
- build/libs/*.war | ||
- ./target/*.tgz | ||
|
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
|
||
VERSION=$(shell grep appVersion gradle.properties | cut -d '=' -f 2) | ||
ARCHIVEDIR=as-rest-client-$(VERSION) | ||
ARCHIVENAME=$(ARCHIVEDIR).tgz | ||
|
||
.PHONY: package | ||
package: clean war validatedocs | ||
mkdir $(ARCHIVEDIR) | ||
mkdir target | ||
cp build/libs/*.war $(ARCHIVEDIR) | ||
cp docs/swagger.json $(ARCHIVEDIR) | ||
tar -czvf target/$(ARCHIVENAME) $(ARCHIVEDIR) | ||
|
||
.PHONY: war | ||
war: | ||
./gradlew bootWar | ||
|
||
.PHONY: clean | ||
clean: | ||
echo $(VERSION) | ||
rm -rf $(ARCHIVEDIR) | ||
rm -f $(ARCHIVENAME) | ||
rm -rf target/ | ||
./gradlew clean | ||
|
||
.PHONY: validatedocs | ||
validatedocs: | ||
ls -lat /root/.nvm/versions/node/v10.15.3/bin/swagger-tools | ||
env | ||
swagger-tools validate docs/swagger.json | ||
swagger-cli validate docs/swagger.json |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
appVersion=1.0.1 | ||
warBaseName=as-rest-client |
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