From 05059ac1fa1d35d9c1eecda724a3551171de6947 Mon Sep 17 00:00:00 2001 From: max furman Date: Fri, 2 Nov 2018 23:52:32 -0700 Subject: [PATCH] add travis github releases --- .gitignore | 21 ++++++++++++++++++--- .travis.yml | 21 ++++++++++++++++++++- Makefile | 4 ++-- debian/changelog | 2 +- 4 files changed, 41 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 4638a1eb..ed2ab99d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,20 @@ -*.swp -/.GOPATH +# Binaries for programs and plugins /bin -/run +*.exe +*.exe~ +*.dll +*.so +*.dylib + +# Test binary, build with `go test -c` +*.test + +# Output of the go coverage tool, specifically when used with LiteIDE +*.out + +# Others +*.swp +.travis-releases +coverage.txt vendor +output diff --git a/.travis.yml b/.travis.yml index ae3adcca..c611aa6a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,12 @@ language: go go: - 1.11.x +addons: + apt: + packages: + - debhelper + - fakeroot + - bash-completion env: global: - V=1 @@ -8,7 +14,20 @@ before_script: - make bootstrap script: - make +- make artifacts after_success: -- bash <(curl -s https://codecov.io/bash) -t "$CODECOV_TOKEN" || echo "Codecov did not collect coverage reports" +- bash <(curl -s https://codecov.io/bash) -t "$CODECOV_TOKEN" || echo "Codecov did + not collect coverage reports" notifications: email: false +stage: Github Release +deploy: + provider: releases + skip_cleanup: true + api_key: + secure: EVV43Vkqn67hhKGYn4WhQp2YO6KFmUDSkLXjYXYGX07Fm8p5KjRFBPOz9LV83QrvVmLigvg0CtR8Jqqcnq2SUhus3nhZaN2g19NhMypZLioyOVP0kAkas8ocuvxkwz3YxIK/yMrmTKbQ7JGXtbc8IjAox9ovNo1fFIQmVMAzPfu++OWBJ0j+gUqKtpaNA7gzsSv8UOw3/T3hNm6E1IbpWxl9BPSOzUOE9F/QOThANzifGfdxvqNJFkAgqu5DVPz8zQNbMrz4zH+KwASKxd6hjhzSSMzouKzOEHTA/elDCHEjke0Jos29MkGWHcIydLtCD95DGecqM8BFSC9f2acHDjmUO1rdfoLA3Pt+UiZJuTwyQm/jrHHhRnH8oJpK15G5LvxSqzY9YDWpAk38+jMw/udW6wt7BGAU8FEXLbq0bsFL3yfTepeWjmzT5WS0YXdiBz2SEK+Og9R2bSdtl4owghRzKNio5DNPuYAbqbpi+jqzqQVLj27x7LWoQ0MHvZcz9U+oO00r6M1tDCmFVRdtfgb2H+MIDY69qYGo5qoGMfH1btCWR8bA9wSYB/Z7hW/xZT9r7f/d5/P40k8yKINmTZqyUTQeplrE3y4BPVzKksclczBZa67syIUQ49I35QppnH4GFQHUwlra7r3W9zfZRvaLnp5qOIKAQe3MAIZqtLg= + file_glob: true + file: .travis-releases/* + on: + repo: smallstep/certificates + tags: true diff --git a/Makefile b/Makefile index d321db81..982287e9 100644 --- a/Makefile +++ b/Makefile @@ -179,7 +179,7 @@ distclean: clean OUTPUT_ROOT=output/ BINARY_OUTPUT=$(OUTPUT_ROOT)binary/ -BUNDLE_MAKE=v=$v GOOS_OVERRIDE='GOOS=$(1) GOARCH=$(2)' PREFIX=$(3) make $(3)bin/step-ca +BUNDLE_MAKE=v=$v GOOS_OVERRIDE='GOOS=$(1) GOARCH=$(2)' PREFIX=$(3) make $(3)bin/$(BINNAME) RELEASE=./.travis-releases binary-linux: @@ -196,7 +196,7 @@ define BUNDLE trap "rm -rf $$TMP" EXIT INT QUIT TERM; \ newdir=$$TMP/$$stepName; \ mkdir -p $$newdir/bin; \ - cp $(BINARY_OUTPUT)$(1)/bin/step $$newdir/bin/; \ + cp $(BINARY_OUTPUT)$(1)/bin/$(BINNAME) $$newdir/bin/; \ cp README.md $$newdir/; \ NEW_BUNDLE=$(RELEASE)/step-certificates_$(2)_$(1)_$(3).tar.gz; \ rm -f $$NEW_BUNDLE; \ diff --git a/debian/changelog b/debian/changelog index 899b0514..8b5b8349 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -step-certificates (0.0.1) unstable; urgency=medium +step-certificates (0.0.1-rc.1) unstable; urgency=medium * See https://github.com/smallstep/certificates/releases