diff --git a/.goreleaser.yml b/.goreleaser.yml index a476d3e..896eca4 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -59,5 +59,5 @@ snapcraft: Dunner is a task runner tool like Grunt but used Docker images like CircleCI do. | You can define tasks and steps of the tasks in your `.dunner.yaml` file and then run these steps with `Dunner do taskname` grade: stable - confinement: devmode - publish: false \ No newline at end of file + confinement: strict + publish: true diff --git a/.travis.yml b/.travis.yml index 13c7639..17b3dc8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,37 +1,32 @@ language: go - go: - - "1.11.x" - - master - +- 1.11.x +- master env: global: - - DEP_VERSION="0.5.0" - - PATH=/snap/bin:$PATH - + - DEP_VERSION="0.5.0" + - PATH=/snap/bin:$PATH services: - - docker +- docker addons: apt: packages: - rpm - snapd - before_install: - - curl -L -s https://github.com/golang/dep/releases/download/v${DEP_VERSION}/dep-linux-amd64 -o $GOPATH/bin/dep - - chmod +x $GOPATH/bin/dep - +- openssl aes-256-cbc -K $encrypted_12c8071d2874_key -iv $encrypted_12c8071d2874_iv + -in snap.login.enc -out snap.login -d +- curl -L -s https://github.com/golang/dep/releases/download/v${DEP_VERSION}/dep-linux-amd64 + -o $GOPATH/bin/dep +- chmod +x $GOPATH/bin/dep install: - - make setup - - sudo snap install snapcraft --classic - +- make setup +- sudo snap install snapcraft --classic script: - - make ci - +- make ci after_success: - - bash <(curl -s https://codecov.io/bash) - - test -n "$TRAVIS_TAG" && snapcraft login --with snap.login - +- bash <(curl -s https://codecov.io/bash) +- test -n "$TRAVIS_TAG" && snapcraft login --with snap.login deploy: - provider: script skip_cleanup: true @@ -39,5 +34,5 @@ deploy: verbose: true on: tags: true - condition: $TRAVIS_OS_NAME = linux + condition: "$TRAVIS_OS_NAME = linux" master: true diff --git a/snap.login.enc b/snap.login.enc new file mode 100644 index 0000000..ec5c6b7 Binary files /dev/null and b/snap.login.enc differ diff --git a/snapcraft.yaml b/snapcraft.yaml index 2cbd30a..9ca7070 100644 --- a/snapcraft.yaml +++ b/snapcraft.yaml @@ -4,7 +4,8 @@ summary: A Docker based task runner tool description: | Dunner is a task runner tool like Grunt but used Docker images like CircleCI do. | You can define tasks and steps of the tasks in your `.dunner.yaml` file and then run these steps with `Dunner do taskname` -confinement: devmode +grade: stable +confinement: strict base: core18 parts: @@ -18,4 +19,4 @@ parts: apps: dunner: - command: Dunner + command: bin/dunner