-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
76 lines (66 loc) · 2.9 KB
/
.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
language: go
sudo: false
go:
- "1.11"
env:
global:
- VERSION=$(cat VERSION)
# Skip the install step. Don't `go get` dependencies. Only build with the code
# in vendor/
#install: true
# email me the results of the test runs.
notifications:
email: true
before_install:
# - find "${GOPATH%%:*}" -name '*.a' -delete
# - rm -rf "${GOPATH%%:*}/src/golang.org"
# - rm -rf "${GOPATH%%:*}/src/github.com"
- cd
- go get -u -v golang.org/x/crypto/bcrypt
- go get -u -v github.com/mattn/go-sqlite3
- go get -u -v github.com/spf13/viper
- go get -u -v github.com/spf13/cobra
- go get -u -v github.com/olekukonko/tablewriter
- go get -u -v github.com/sirupsen/logrus
- go get -u -v github.com/jmoiron/sqlx
# Anything in before_script that returns a nonzero exit code will flunk the
# build and immediately stop. It's sorta like having set -e enabled in bash.
# Make sure golangci-lint is vendored by running
# dep ensure -add github.com/golangci/golangci-lint/cmd/golangci-lint
# ...and adding this to your Gopkg.toml file.
# required = ["github.com/golangci/golangci-lint/cmd/golangci-lint"]
#
# before_script:
# - go install ./vendor/github.com/golangci/golangci-lint/cmd/golangci-lint
install:
- go get -u -v github.com/pkg/errors
script:
- cd $HOME/gopath/src/github.com/swordlordcodingcrew/bunny-express
- mkdir build
- GOPATH="$HOME/gopath/src/github.com/swordlordcodingcrew/bunny-express:/home/travis/gopath"
- go build -o build/be-v$VERSION -gcflags "all=-N -l" swordlord.com/bunny-express
# - make
# go test -v swordlord.com/bunnyexpress
# With this configuration the build itself runs for every commit and PR
# (which is nice, because we see if everything compiles fine), but the
# deployment only happens when we actually push a tag as well containing
# the version number of the new release.
#
# deploy:
# provider: releases
# skip_cleanup: true # Important, otherwise the build output would be purged.
# api_key:
# secure: lFGBaF...SJ1lDPDICY=
# file: bin/myawesomeapp
# on:
# repo: account/myawesomeproject
# tags: true # The deployment happens only if the commit has a tag.
deploy:
provider: releases
file:
- build/be-v$VERSION
api_key:
secure: F9LgsCbQu2Syt0UObcS/bnsdQzQb64qG4YE+DurdZ+qd9vwrG7rPWmLZ6kXagpvIVusmLDoxtUDZ9lY09qeC9uHqHa8a1nxU0J+4Ngi22kNisR41m+s+SSuQV02SaYoKJV6bPyF5bGCKZN4NXusipEbxUOSvxTSIWGw+2utI58pY21TBuAQMS8UqZV2v1NK5XLIwIT4w7ra90cBgSvsam6LNYDoiNVyikPL7hkoai4gzVwByAdkCttYMHj2U3HSPMDRPVzUJr9fAfK34wV55ZK55xxQfSbG5oyXLN7H/ak1rZjmyMTbS6VhMdumiCHkwLdTzvZ7eHiban/WA3w57juy/ZEtKuJU5koC6oZfbNwNc/mlUW1Ulj/Ahh83VXZAdP0P2H6bIWndZbQsQJNzwDHm9sKbQeiTdcNe6BsJBqMNC6d0w/X0PZgctrrhE+LyAxEgrianXrSs1/tDu72yAufbu9MdpjKef/X+8BKRFbmx2aCi5JHBOKoCMHMWebTC17eSe6N+O6011GVNyHe19eCF2LAV1hfFx1PfA8Xf0/C7im1N7FX2d2R0Jxr0GE23sLz4M7OP6HX3fkDS2R4R+U6AWvrZeH2Hq8glskq7ITo7H56J4KJz7Dvd/0yVZLtTCG1pQizumlpy2g9OGh7Pdv1fHnD0cS3/NLOOivd3E9oE=
skip_cleanup: true
on:
tags: false