File tree 3 files changed +13
-8
lines changed
3 files changed +13
-8
lines changed Original file line number Diff line number Diff line change 1
1
language : go
2
-
3
2
go :
4
3
- tip
5
4
@@ -10,14 +9,17 @@ install:
10
9
script :
11
10
- make test
12
11
12
+ # This assumes that git tags start with "v", e.g. v0.19
13
13
before_deploy :
14
- - make build
14
+ - PACKAGE_VERSION=${TRAVIS_TAG:1} make build
15
15
16
- deploy :
16
+ deploy :
17
17
provider : releases
18
- api_key : ${GITHUB_KEY}
19
- file_glob : true
20
- file : " pkg/remote_syslog*"
21
18
skip_cleanup : true
19
+ api_key :
20
+ secure : d3jdocN7D2L3I/Uwj2vIlMGId59zxi1UKxn3AsSC3WERbc9N0m781HmfJe5iD7GW7fp/os1kswb2mtGKLXluNliEOpYutOPlvtQNw8GyovNwK08aeyWm/+oxul36rLnAN81aPBAY11mKKaU0gJOv6Q79yq8ew6OY8D6UdZRyypY=
21
+ file : " pkg/remote_syslog*"
22
+ file_glob : true
22
23
on :
23
24
tags : true
25
+ condition : ${TRAVIS_TAG:0:1} = "v"
Original file line number Diff line number Diff line change @@ -49,6 +49,11 @@ depend:
49
49
@echo
50
50
@echo " \033[32mChecking Dependencies ----> \033[m"
51
51
52
+ ifndef PACKAGE_VERSION
53
+ @echo "\033[1;33mPACKAGE_VERSION is not set. In order to build a package I need PACKAGE_VERSION=n\033[m"
54
+ exit 1;
55
+ endif
56
+
52
57
ifndef GOPATH
53
58
@echo "\033[1;33mGOPATH is not set. This means that you do not have go setup properly on this machine\033[m"
54
59
@echo "$$ mkdir ~/gocode";
Original file line number Diff line number Diff line change 1
- PACKAGE_VERSION := 0.19a
2
1
PACKAGE_NAME := remote_syslog2
3
2
PACKAGE_VENDOR := "Papertrail Inc."
4
3
PACKAGE_LICENSE := "MIT License"
5
4
PACKAGE_CONTACT :=
[email protected]
6
5
PACKAGE_DESCRIPTION := "Lightweight self-contained daemon for reading local files and emitting remote syslog (without using local syslog daemon)"
7
6
PACKAGE_URL := https://github.com/papertrail/remote_syslog2
8
-
You can’t perform that action at this time.
0 commit comments