Skip to content

Commit

Permalink
Merge pull request #590 from rgooch/master
Browse files Browse the repository at this point in the history
Build fixes so that TravisCI will also test build for MacOS.
  • Loading branch information
rgooch committed Apr 12, 2019
2 parents f65f44d + 0991adf commit 84626cd
Show file tree
Hide file tree
Showing 14 changed files with 62 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ before_install:
script:
- go test -covermode=count -coverprofile=coverage.out ./...
- $HOME/gopath/bin/goveralls -coverprofile=coverage.out -service=travis-ci
- make all test
- make all build-darwin test
17 changes: 17 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,23 @@ all:
@cd $(GOPATH)/src; go install github.com/Symantec/Dominator/cmd/*
@cd c; make

build-darwin:
@cd $(GOPATH)/src; (GOOS=darwin go build github.com/Symantec/Dominator/cmd/*)

build-linux:
@cd $(GOPATH)/src; (GOOS=linux go build github.com/Symantec/Dominator/cmd/*)

build-windows:
@cd $(GOPATH)/src; (GOOS=windows go build github.com/Symantec/Dominator/cmd/*)

install-darwin:
@cd $(GOPATH)/src; (GOOS=darwin go install github.com/Symantec/Dominator/cmd/*)

install-linux:
@cd $(GOPATH)/src; (GOOS=linux go install github.com/Symantec/Dominator/cmd/*)

install-windows:
@cd $(GOPATH)/src; (GOOS=windows go install github.com/Symantec/Dominator/cmd/*)

dominator.tarball:
@./scripts/make-tarball dominator -C $(ETCDIR) ssl
Expand Down
2 changes: 2 additions & 0 deletions cmd/image-unpacker/main.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build linux

package main

import (
Expand Down
12 changes: 12 additions & 0 deletions cmd/image-unpacker/stub.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// +build !linux

package main

import (
"os"
)

func main() {
os.Stderr.Write([]byte("Not available on this OS\n"))
os.Exit(1)
}
2 changes: 2 additions & 0 deletions cmd/imaginator/slaveDriver.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build linux

package main

import (
Expand Down
2 changes: 2 additions & 0 deletions cmd/installer/configureLocalNetwork.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build linux

package main

import (
Expand Down
2 changes: 2 additions & 0 deletions cmd/installer/configureNetwork.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build linux

package main

import (
Expand Down
2 changes: 2 additions & 0 deletions cmd/installer/configureStorage.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build linux

package main

import (
Expand Down
2 changes: 2 additions & 0 deletions cmd/installer/lib.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build linux

package main

import (
Expand Down
2 changes: 2 additions & 0 deletions cmd/installer/main.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build linux

package main

import (
Expand Down
2 changes: 2 additions & 0 deletions cmd/installer/objects.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build linux

package main

import (
Expand Down
2 changes: 2 additions & 0 deletions cmd/installer/pty.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build linux

package main

import (
Expand Down
2 changes: 2 additions & 0 deletions cmd/installer/server.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build linux

package main

import (
Expand Down
12 changes: 12 additions & 0 deletions cmd/installer/stub.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// +build !linux

package main

import (
"os"
)

func main() {
os.Stderr.Write([]byte("Not available on this OS\n"))
os.Exit(1)
}

0 comments on commit 84626cd

Please sign in to comment.