Skip to content

Commit

Permalink
Merge pull request #54 from openSUSE/32bit-build
Browse files Browse the repository at this point in the history
Add 32bit build to travis
  • Loading branch information
rhatdan authored Feb 4, 2020
2 parents e597c78 + 10c6b72 commit 30d1f7c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@ language: go

go:
- tip
- 1.13

before_install:
- sudo apt-get -qq install libdevmapper-dev
- sudo apt-get -qq install libdevmapper-dev

script:
- make install.tools
- make validate
- make vendor
- make test
- make build
- make install.tools
- make validate
- make vendor
- make test
14 changes: 14 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,20 @@ define go-get
$(GO) get -u ${1}
endef

.PHONY: all
all: build-amd64 build-386

.PHONY: build
build: build-amd64 build-386

.PHONY: build-amd64
build-amd64:
GOARCH=amd64 $(GO_BUILD) ./...

.PHONY: build-386
build-386:
GOARCH=386 $(GO_BUILD) ./...

.PHONY: docs
docs:
$(MAKE) -C docs
Expand Down

0 comments on commit 30d1f7c

Please sign in to comment.