Update appveyor.yml with new build flags.
@@ -27,6 +27,7 @@ clone_folder: c:\gopath\src\github.com\jfrog\jfrog-cli-go
environment:
GOPATH: c:\gopath
GO111MODULE: on
+ CGO_ENABLED: 0
JAVA_HOME: C:\Program Files\Java\jdk1.8.0
GRADLE_OPTS: -Dorg.gradle.daemon=false
@@ -42,7 +43,7 @@ environment:
secure: Bm9R9Zveb6Rxc6M4IWvpVi1j1txDSBwz2L+CHKDoxwDHDfPs7vMb8+gSbB63XAq+
COMMON_TESTS_ARGS:
- go test -v github.com\jfrog\jfrog-cli-go\jfrog-cli\jfrog --timeout 0 --rt.url="%JFROG_CLI_RT_URL%" --rt.user="%JFROG_CLI_RT_USER%" --rt.password="%JFROG_CLI_RT_PASSWORD%"
+ go test -v github.com\jfrog\jfrog-cli-go\jfrog-cli\jfrog -ldflags '-w -extldflags "-static"' --timeout 0 --rt.url="%JFROG_CLI_RT_URL%" --rt.user="%JFROG_CLI_RT_USER%" --rt.password="%JFROG_CLI_RT_PASSWORD%"
BT_CREDENTIALS_ARGS:
--bt.user="%JFROG_CLI_BINTRAY_USER%" --bt.key="%JFROG_CLI_BINTRAY_APIKEY%"
