-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added snap.login.enc for SnapCraft auto build on Travis CI
- Loading branch information
1 parent
06a036e
commit b1bc1a4
Showing
2 changed files
with
16 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.