Skip to content

Commit 86a2db2

Browse files
committed
releases added for different architectures and OS'es
1 parent 7e3aeba commit 86a2db2

File tree

3 files changed

+25
-7
lines changed

3 files changed

+25
-7
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ go:
44
- 1.11.x
55

66
script:
7-
- make test build
7+
- make all
88

99
deploy:
1010
provider: releases
1111
api_key: $GITHUB_TOKEN
1212
file_glob: true
13-
file: gitlab-trigger-watcher
13+
file: gtw-*
1414
skip_cleanup: true
1515
on:
1616
tags: true

Makefile

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,28 @@
11

2-
.PHONY: all test build
2+
.PHONY: all test build build-linux-amd64 build-osx-amd64 build-windows-amd64 build-win-386
33

4-
all: test build
4+
all: test build build-linux-amd64 build-osx-amd64 build-windows-amd64 build-win-386
55

66
test:
77
@go test -v -race ./...
88

99
build:
10-
@go build
10+
@go build -o gtw
11+
12+
build-linux-amd64:
13+
@GOOS=linux GOARCH=amd64 go build -o gtw-linux-amd64
14+
15+
build-linux-386:
16+
@GOOS=linux GOARCH=386 go build -o gtw-linux-386
17+
18+
build-osx-amd64:
19+
@GOOS=darwin GOARCH=amd64 go build -o gtw-osx-amd64
20+
21+
build-osx-386:
22+
@GOOS=darwin GOARCH=386 go build -o gtw-osx-386
23+
24+
build-windows-amd64:
25+
@GOOS=darwin GOARCH=amd64 go build -o gtw-win-amd64.exe
26+
27+
build-win-386:
28+
@GOOS=darwin GOARCH=386 go build -o gtw-win-386.exe

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Application to check Gitlab trigger's pipeline status
66
### Build and run
77
```bash
88
make build
9-
./gitlab-trigger-watcher -h
9+
./gtw -h
1010
```
1111

1212
options:
@@ -23,5 +23,5 @@ options:
2323
### Run:
2424

2525
```bash
26-
./gitlab-trigger-watcher --privateToken ${PRIVATE_TOKEN} --token ${TOKEN} --host gitlab.egt.com --projectID 123 run
26+
./gtw --privateToken ${PRIVATE_TOKEN} --token ${TOKEN} --host gitlab.egt.com --projectID 123 run
2727
```

0 commit comments

Comments
 (0)