Skip to content

Commit

Permalink
Added snap.login.enc for SnapCraft auto build on Travis CI
Browse files Browse the repository at this point in the history
  • Loading branch information
agentmilindu committed May 26, 2019
1 parent 06a036e commit b1bc1a4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 21 deletions.
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.

0 comments on commit b1bc1a4

Please sign in to comment.