Skip to content

Commit

Permalink
Merge pull request #1 from ww24/fix/go-build
Browse files Browse the repository at this point in the history
Fix go build env
  • Loading branch information
ww24 authored Dec 19, 2016
2 parents b573024 + dbd42a7 commit 97f2a5d
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 7 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
LIRC Web API
===

[![wercker status](https://app.wercker.com/status/b9a4cc28becedddbff9ee59b19a54f47/m/master "wercker status")](https://app.wercker.com/project/byKey/b9a4cc28becedddbff9ee59b19a54f47)

Implemented by golang.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"net/http"

"github.com/labstack/echo"
"github.com/lirc-web-api/lirc"
"github.com/ww24/lirc-web-api/lirc"
)

type response struct {
Expand Down
26 changes: 20 additions & 6 deletions wercker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,29 @@ build:
--allow-simulate \
--driver default
- script:
name: set working directory
code: |
export WERCKER_SOURCE_DIR=$WERCKER_SOURCE_DIR/lirc
echo "WERCKER_SOURCE_DIR=$WERCKER_SOURCE_DIR"
- setup-go-workspace:
package-dir: github.com/ww24/lirc-web-api

- glide-install

- script:
name: go test
code: |
go test -v ./...
go test -v $(glide nv)
- script:
name: go build
code: |
go build -o api
- script:
name: copy to output
code: |
pwd
cp "$WERCKER_SOURCE_DIR/api" "$WERCKER_SOURCE_DIR/README.md" "$WERCKER_OUTPUT_DIR"
deploy:
steps:
- github-create-release:
token: $GITHUB_TOKEN
tag: v0.1.0

0 comments on commit 97f2a5d

Please sign in to comment.