diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 0000000..09d64de --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,14 @@ +--- +before: + hooks: + - make init + +archive: + name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}" + + wrap_in_directory: falsee + + format: zip + files: + - LICENSE + - README.md diff --git a/.travis.yml b/.travis.yml index 4bd6b67..6cbfa0e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,11 +1,15 @@ -dist: trusty +--- + +env: + global: + - secure: "HzzfC14h4avZlndMqJZGt80uU+JoXepHQHMk8YSsadWUZo4J8T6Xi9fOEK2rlNf43rByQJJugawQrwEPKOkAn8OcD1iOzALr4rLZNnKifKrffEXHEQ7zm8VuhyGfwiiP0Jxsx5Oyt9jVJV8Z/exxLy7XY1u4nGs2LLnsxtcoCmB8QOXzvqk4ZmDOr/KwsuOh5Pv5aPQOUOTeI7MksN1esMDykHnZ3/8r6De+nkNE1gli/dOFMG3skc6ywKj6BaDGiMO38Y6u8qkhSx0yolaRjlI/3sthhED/7f0RujYyQb3JKqz5MitvSRoYf+cIu9j0zxQRHejphJYD+RQIMgnU/YU+mlsqbd1s1ZBsAIt/pUtmILrkyRjDRdboKO6N0LTiIo8rT5V6tkcxOyx53GViBF+d818ry1nq+e+Pzbmhb1d/zT2ghAUUzyPR2QlTB/2bAh3j1eSzzcZIw5jc/emkbibgL6V5fnaQITKwl2ns4DyrccSyBNSh0JeA0RSsp1dtOh2/eh6kzf2Bxer9qnAT4vXFJDu9wHGxnOzDmQctOsAP4mf7IiIMtSNToD1HtAeMVE3gF/AqEmdHpXEjbXq7XxAEroKJ+893JVey4MYyKBlV3UsW38Ey0/0tKkLo6h1mEiNdy2GlUjdwP5JK3jgotTSVVwvJSIHSd015HhxQaNg=" +dist: xenial sudo: required language: go go: - - 1.8.x - - 1.9.x - - master + - 1.11.6 + - 1.12.1 go_import_path: github.com/f1yegor/clickhouse_exporter @@ -26,9 +30,11 @@ after_success: - bash <(curl -s https://codecov.io/bash) -X fix - zip clickhouse_exporter-$TRAVIS_TAG.zip /go/bin/clickhouse_exporter deploy: - provider: releases - api_key: - secure: S/fi+5Wx8HxarYzD3RdR8XeoUV3NGAj2ToK1hicaJDW7zXSvrEIQRKX+WABI7PGEjNJPDjufLoZScpo0mC29PH9rKD64Gr6JcY3iJDA239LAKrzQAHZk8JpOkXhgWQSFBJWPrdtdF8lgaYGCUbksgSOoZ91gQSSxSyxhfc5Zj4dDnAG3dn3iRzF3mCaDjbsE7faUPHacUrRg6YJ9qkM6mJkZ1UP0t69Yl9/m7JMYRPeU1SePF5emfiMLQ5eq/Vu9gs66JAg8o0gv1Q9oGnxotjoBvXL+EG14f1heXTVxaGfLzGFP38hhpfriPEEWWOJaem2cYavnwNeE4zui+p9z/H/i/1Q4wDh3+G9lyh5CcMHUHWoIlvy6rBttkyTc9IkhJWafJCnxgbitDp/7yju6PxxECUhC/GrstgSWnm8yz2zHqbnBVlFaf9cer2mb2Tmjc/c6p6Cv+GzzAI7vvmx5IQbg1P48yXcEMabWmQx4fikUD6+0tnhtGWg+Tec6x1h6vGBveoXHQXPn9ZadAF9Z+ZZFo1d9StSHeATrKxldFoK5HxLoPdQ6Yqbo0jqeE+kR2LvWGDqd7cXgIUdQMiMeF1GUYDmm1noM5Gb9DcAFBvkfOQSzQHFrT7vA3AJmA6YtzUCGZ1LVRInteQ3ThNsPHFWMLHbt61exj8A+6sBotJU= - file: 'clickhouse_exporter-$TRAVIS_TAG.zip' - on: - repo: dreamteam-gg/clickhouse_exporter + - provider: script + skip_cleanup: true + env: + + script: curl -sL https://git.io/goreleaser | bash + on: + tags: true + condition: $TRAVIS_OS_NAME = 'linux' && $TRAVIS_GO_VERSION = '1.12.1'