Skip to content

Commit

Permalink
Merge pull request #3 from EGT-Ukraine/releases
Browse files Browse the repository at this point in the history
releases added for different architectures and OS'es
  • Loading branch information
Vyacheslav Pryimak authored Feb 12, 2019
2 parents 7e3aeba + 86a2db2 commit 0bf0563
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ go:
- 1.11.x

script:
- make test build
- make all

deploy:
provider: releases
api_key: $GITHUB_TOKEN
file_glob: true
file: gitlab-trigger-watcher
file: gtw-*
skip_cleanup: true
on:
tags: true
24 changes: 21 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,28 @@

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

all: test build
all: test build build-linux-amd64 build-osx-amd64 build-windows-amd64 build-win-386

test:
@go test -v -race ./...

build:
@go build
@go build -o gtw

build-linux-amd64:
@GOOS=linux GOARCH=amd64 go build -o gtw-linux-amd64

build-linux-386:
@GOOS=linux GOARCH=386 go build -o gtw-linux-386

build-osx-amd64:
@GOOS=darwin GOARCH=amd64 go build -o gtw-osx-amd64

build-osx-386:
@GOOS=darwin GOARCH=386 go build -o gtw-osx-386

build-windows-amd64:
@GOOS=darwin GOARCH=amd64 go build -o gtw-win-amd64.exe

build-win-386:
@GOOS=darwin GOARCH=386 go build -o gtw-win-386.exe
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Application to check Gitlab trigger's pipeline status
### Build and run
```bash
make build
./gitlab-trigger-watcher -h
./gtw -h
```

options:
Expand All @@ -23,5 +23,5 @@ options:
### Run:

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

0 comments on commit 0bf0563

Please sign in to comment.