From a1f1ded8522c2b6fdb78008e3fdc2c90b3829bd7 Mon Sep 17 00:00:00 2001 From: Kenta Yamamoto Date: Thu, 14 Feb 2019 21:51:02 +0900 Subject: [PATCH] Updated release script --- al2/helper/project_test.go | 32 ++++++++++++++++---------------- azure-pipelines.yml | 6 +++++- script/release.sh | 7 +++++-- 3 files changed, 26 insertions(+), 19 deletions(-) diff --git a/al2/helper/project_test.go b/al2/helper/project_test.go index b5f440e..1682542 100644 --- a/al2/helper/project_test.go +++ b/al2/helper/project_test.go @@ -1,18 +1,18 @@ package helper_test -import ( - "flag" - "github.com/ToQoz/gopwt" - "os" - "testing" -) - -func TestMain(m *testing.M) { - flag.Parse() - gopwt.Empower() - os.Exit(m.Run()) -} - -func TestMustProjectPath(t *testing.T) { - t.SkipNow() -} +//import ( +// "flag" +// "github.com/ToQoz/gopwt" +// "os" +// "testing" +//) +// +//func TestMain(m *testing.M) { +// flag.Parse() +// gopwt.Empower() +// os.Exit(m.Run()) +//} +// +//func TestMustProjectPath(t *testing.T) { +// t.SkipNow() +//} diff --git a/azure-pipelines.yml b/azure-pipelines.yml index ae92736..91af338 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -16,10 +16,14 @@ variables: steps: - script: bash script/ci.sh build-container - displayName: 'docker build' + displayName: 'Docker build' - script: bash script/ci.sh ci displayName: 'CI' - script: bash script/ci.sh release displayName: 'Release' + - + task: PublishBuildArtifacts@1 + inputs: + targetPath: $(Build.ArtifactStagingDirectory)/*/altogether diff --git a/script/release.sh b/script/release.sh index 2124439..ca28970 100755 --- a/script/release.sh +++ b/script/release.sh @@ -1,14 +1,17 @@ #!/usr/bin/env bash XC_ARCH=${XC_ARCH:-amd64} -XC_OS=${XC_OS:-linux darwin windows} +XC_OS=${XC_OS:-linux darwin} VERSION=${VERSION:-v0.0.0} BUILD_FLAGS="-X \"main.Version=${VERSION}\"" ASSET_DIR="${ASSET_DIR:=pkg}" +echo "ASSET_DIR:${ASSET_DIR}" -rm -rf pkg/* +#rm -rf pkg/* gox \ -ldflags="${BUILD_FLAGS}" \ -os="${XC_OS}" \ -arch="${XC_ARCH}" \ -output "${ASSET_DIR}/{{.OS}}-{{.Arch}}/{{.Dir}}" + +ls -la "${ASSET_DIR}/"*