Skip to content

Commit

Permalink
Add packr build using go generate to circle build
Browse files Browse the repository at this point in the history
  • Loading branch information
sagikazarmark committed Apr 30, 2018
1 parent 4b68521 commit d4be539
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:
name: Install Go dependencies
command: dep ensure -v -vendor-only
- run:
name: Pack template files
command: packr
name: Generate Packr boxes
command: go generate ./protoc-gen-twirp_php/
- run:
name: Test code generator
command: go test -v ./protoc-gen-twirp_php/...
Expand Down
3 changes: 3 additions & 0 deletions protoc-gen-twirp_php/.packr/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package main

import (
"context"
"fmt"
"log"
"os"

Expand All @@ -12,6 +13,8 @@ func main() {
b := builder.New(context.Background(), os.Args[1])
b.Compress = true

fmt.Println("Generating Packr boxes")

err := b.Run()
if err != nil {
log.Fatal(err)
Expand Down

0 comments on commit d4be539

Please sign in to comment.