-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
51 lines (39 loc) · 779 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
39
40
41
42
43
44
45
46
47
48
49
50
51
language: go
go:
- 1.18.x
os:
- linux
#- osx
#- windows
addons:
apt:
packages:
- snapd
before_install:
- openssl aes-256-cbc -K $encrypted_0ed7cc50a3ff_key -iv $encrypted_0ed7cc50a3ff_iv -in snap.login.enc -out snap.login -d
install:
- sudo snap install snapcraft --classic
git:
depth: 1
env:
global:
- PATH=/snap/bin:$PATH
- GO111MODULE=on
before_script:
- go get -t -v ./...
- go get -u github.com/gobuffalo/packr/v2/packr2
script:
- packr2
- go build
- go test ./test/
deploy:
- provider: script
skip_cleanup: true
script: curl -sL https://git.io/goreleaser | bash
on:
tags: true
condition: "$TRAVIS_OS_NAME = linux"
after_success:
- test -n "$TRAVIS_TAG" && snapcraft login --with snap.login
notifications:
email: false