diff --git a/.goreleaser.yml b/.goreleaser.yml index 18d66df..c4c9373 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -3,9 +3,9 @@ before: hooks: # you may remove this if you don't use vgo - - go mod download + # - go mod download # you may remove this if you don't need go generate - - go generate ./... + # - go generate ./... builds: - env: - CGO_ENABLED=0 diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..6d58760 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,42 @@ +# .travis.yml +language: go + +addons: + apt: + packages: + # needed for the nfpm pipe: + - rpm + # needed for the snap pipe: + - snapcraft + +env: +# needed for the snap pipe: +- PATH=/snap/bin:$PATH + +install: +# needed for the snap pipe: +- sudo snap install snapcraft --classic + +# needed for the docker pipe +services: +- docker + +after_success: +# docker login is required if you want to push docker images. +# DOCKER_PASSWORD should be a secret in your .travis.yml configuration. +# - test -n "$TRAVIS_TAG" && docker login -u=myuser -p="$DOCKER_PASSWORD" +# snapcraft login is required if you want to push snapcraft packages to the +# store. +# You'll need to run `snapcraft export-login snap.login` and +# `travis encrypt-file snap.login --add` to add the key to the travis +# environment. +# - test -n "$TRAVIS_TAG" && snapcraft login --with snap.login + +# calls goreleaser +deploy: +- provider: script + skip_cleanup: true + script: curl -sL https://git.io/goreleaser | bash + on: + tags: true + condition: $TRAVIS_OS_NAME = linux \ No newline at end of file diff --git a/main.go b/main.go index 218b4eb..4fd6ab5 100644 --- a/main.go +++ b/main.go @@ -9,7 +9,7 @@ import ( ) const ( - version = "0.2.0" + version = "0.3.0" name = "howdoi-cli" )