-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fixed setting of passwords in replications and remote repository * Added integration tests * Bumped to terraform v0.11.11 * Cleaned up lint checks and build
- Loading branch information
1 parent
7a6189c
commit 23bfa93
Showing
46 changed files
with
780 additions
and
400 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,33 +1,21 @@ | ||
# Adapted from https://gist.github.com/y0ssar1an/df2dab474520c4086926f672c52db139 | ||
language: go | ||
services: | ||
- docker | ||
|
||
# Only the last two Go releases are supported by the Go team with security | ||
# updates. Any versions older than that should be considered deprecated. | ||
# Don't bother testing with them. tip builds your code with the latest | ||
# development version of Go. This can warn you that your code will break | ||
# in the next version of Go. Don't worry! Later we declare that test runs | ||
# are allowed to fail on Go tip. | ||
language: go | ||
go: | ||
- 1.10.x | ||
- 1.11.x | ||
- master | ||
|
||
matrix: | ||
# It's ok if our code fails on unstable development versions of Go. | ||
allow_failures: | ||
- go: master | ||
# Don't wait for tip tests to finish. Mark the test run green if the | ||
# tests pass on the stable versions of Go. | ||
fast_finish: true | ||
|
||
# Don't email me the results of the test runs. | ||
notifications: | ||
email: false | ||
|
||
- "1.11.x" | ||
env: | ||
- GO111MODULE="on" | ||
GOFLAGS=-mod=vendor | ||
|
||
install: | ||
# Decrypt Artifactory License Key | ||
- openssl aes-256-cbc -K $encrypted_1d073d5eb2c7_key -iv $encrypted_1d073d5eb2c7_iv | ||
-in scripts/artifactory.lic.enc -out scripts/artifactory.lic -d | ||
|
||
script: | ||
- go build -v | ||
- go test -v -race ./... # Run all the tests with the race detector enabled | ||
- go vet ./... # go vet is the official Go static analyzer | ||
- make testacc | ||
|
||
matrix: | ||
fast_finish: true | ||
allow_failures: | ||
- go: tip |
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,29 @@ | ||
TEST?=./... | ||
GOFMT_FILES?=$$(find . -name '*.go' |grep -v vendor) | ||
PKG_NAME=pkg/artifactory | ||
|
||
default: build | ||
|
||
build: fmtcheck | ||
go install | ||
|
||
test: fmtcheck | ||
go test $(TEST) -timeout=30s -parallel=4 | ||
|
||
docker: | ||
@echo "==> Launching Artifactory in Docker..." | ||
@scripts/run-artifactory.sh | ||
|
||
testacc: fmtcheck docker | ||
TF_ACC=1 ARTIFACTORY_USERNAME=admin ARTIFACTORY_PASSWORD=password ARTIFACTORY_URL=http://localhost:8080/artifactory \ | ||
go test $(TEST) -v -parallel 20 $(TESTARGS) -timeout 120m | ||
@docker stop artifactory | ||
|
||
fmt: | ||
@echo "==> Fixing source code with gofmt..." | ||
gofmt -s -w ./$(PKG_NAME) | ||
|
||
fmtcheck: | ||
@sh -c "'$(CURDIR)/scripts/gofmtcheck.sh'" | ||
|
||
.PHONY: build test testacc fmt |
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
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
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
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
Oops, something went wrong.