# HG changeset patch # User Sean E. Russell # Date 1494673387 14400 # Sat May 13 07:03:07 2017 -0400 # Node ID ab5a16920c29132038a8bd2a0dedd43dfe3baee5 # Parent 8609ac672ba4364ae3ef408de26fb6662349a600 Updates for svgo changes, and trying to get pipelines to upload files. It isn't failing, but I don't know where the assets are going -- they don't show up in Downloads. diff --git a/Gopkg.lock b/Gopkg.lock --- a/Gopkg.lock +++ b/Gopkg.lock @@ -22,7 +22,7 @@ branch = "master" name = "github.com/serussell/svgo" packages = ["."] - revision = "24b9676e6feea3e1bb4ed798984348f2de7d159e" + revision = "ca525ed8efd2c2c7a9fda87674c0c13893097957" [[projects]] name = "github.com/stretchr/testify" diff --git a/Makefile b/Makefile --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ all: - orgchart \ + ./orgchart \ -f "${WHO}" \ -t 3,4,5 \ -i "${DATA}" \ diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml --- a/bitbucket-pipelines.yml +++ b/bitbucket-pipelines.yml @@ -29,6 +29,6 @@ - GOOS=linux go build -ldflags "-X main.Version=${BITBUCKET_BOOKMARK}" -v -o orgchart_${BITBUCKET_BOOKMARK}_linux ./cmd/orgchart - GOOS=darwin go build -ldflags "-X main.Version=${BITBUCKET_BOOKMARK}" -v -o orgchart_${BITBUCKET_BOOKMARK}_darwin ./cmd/orgchart - GOOS=windows go build -ldflags "-X main.Version=${BITBUCKET_BOOKMARK}" -v -o orgchart_${BITBUCKET_BOOKMARK}_windows.exe ./cmd/orgchart - - curl -X POST "https://${BB_AUTH_STRING}@api.bitbucket.org/2.0/repositories/${BITBUCKET_REPO_OWNER}/${BITBUCKET_REPO_SLUG}/downloads" --form files=@"orgchart_${BITBUCKET_BOOKMARK}_linux" - - curl -X POST "https://${BB_AUTH_STRING}@api.bitbucket.org/2.0/repositories/${BITBUCKET_REPO_OWNER}/${BITBUCKET_REPO_SLUG}/downloads" --form files=@"orgchart_${BITBUCKET_BOOKMARK}_darwin" - - curl -X POST "https://${BB_AUTH_STRING}@api.bitbucket.org/2.0/repositories/${BITBUCKET_REPO_OWNER}/${BITBUCKET_REPO_SLUG}/downloads" --form files=@"orgchart_${BITBUCKET_BOOKMARK}_windows.exe" + - curl -X POST --user "${BB_AUTH_STRING}" "https://api.bitbucket.org/2.0/repositories/${BITBUCKET_REPO_OWNER}/${BITBUCKET_REPO_SLUG}/downloads" --form files=@"orgchart_${BITBUCKET_BOOKMARK}_linux" + - curl -X POST --user "${BB_AUTH_STRING}" "https://api.bitbucket.org/2.0/repositories/${BITBUCKET_REPO_OWNER}/${BITBUCKET_REPO_SLUG}/downloads" --form files=@"orgchart_${BITBUCKET_BOOKMARK}_darwin" + - curl -X POST --user "${BB_AUTH_STRING}" "https://api.bitbucket.org/2.0/repositories/${BITBUCKET_REPO_OWNER}/${BITBUCKET_REPO_SLUG}/downloads" --form files=@"orgchart_${BITBUCKET_BOOKMARK}_windows.exe" diff --git a/svg.go b/svg.go --- a/svg.go +++ b/svg.go @@ -103,7 +103,7 @@ c.FeGaussianBlur(svg.Filterspec{In: "SourceGraphic", Result: "blur"}, 1, 1) c.Fend() c.Def() - c.Style(css) + c.Style("text/css", css) c.Gid(_id) c.Rect(0, 0, boxW, boxH) c.Gend()