-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
38 lines (31 loc) · 899 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
language: go
go:
- 1.x
addons:
apt:
packages:
- snapd
env:
- PATH=/snap/bin:$PATH GO111MODULE=on
install:
- sudo snap install snapcraft --classic
after_success:
# Install AUR ssh key
- mkdir -p ~/.ssh
- openssl aes-256-cbc -K $encrypted_539467f650e3_key -iv $encrypted_539467f650e3_iv -in ci/aur/id_rsa.enc -out ~/.ssh/id_rsa -d
- chmod 600 ~/.ssh/id_rsa
# Login into snapcraft
- openssl aes-256-cbc -K $encrypted_6ac5d215f818_key -iv $encrypted_6ac5d215f818_iv -in ci/snap.login.enc -out ci/snap.login -d
- snapcraft login --with ci/snap.login
deploy:
- provider: script
skip_cleanup: true
script: curl -sL https://git.io/goreleaser | bash
on:
tags: true
condition: $TRAVIS_OS_NAME = linux
- provider: script
skip_cleanup: true
script: curl -sL https://git.io/goreleaser | bash -s - --snapshot
on:
branch: master