Skip to content

Commit

Permalink
Merge pull request #77 from leopardslab/update-snapcraft-configs
Browse files Browse the repository at this point in the history
Update Snapcraft configs
  • Loading branch information
agentmilindu authored May 26, 2019
2 parents 8becd1b + b1bc1a4 commit 2686efd
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 25 deletions.
4 changes: 2 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
confinement: strict
publish: true
37 changes: 16 additions & 21 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,43 +1,38 @@
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
script: curl -sL https://git.io/goreleaser | bash
verbose: true
on:
tags: true
condition: $TRAVIS_OS_NAME = linux
condition: "$TRAVIS_OS_NAME = linux"
master: true
Binary file added snap.login.enc
Binary file not shown.
5 changes: 3 additions & 2 deletions snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -18,4 +19,4 @@ parts:

apps:
dunner:
command: Dunner
command: bin/dunner

0 comments on commit 2686efd

Please sign in to comment.