Configured the Travis.cl configuration to cross-compile Windows and Linux for both 386 and amd64.

This commit is contained in:
Pietro Gagliardi 2014-03-05 11:28:15 -05:00
parent bd87c9d6cb
commit 6d5d70747c
1 changed files with 14 additions and 1 deletions

View File

@ -3,6 +3,19 @@ language: go
go: go:
- tip - tip
env:
- GOOS=linux GOARCH=386
- GOOS=linux GOARCH=amd64
- GOOS=windows GOARCH=386
- GOOS=windows GOARCH=amd64
before_install: before_install:
- go tool dist install cmd/8a
- go tool dist install cmd/8c
- go tool dist install cmd/8g
- go tool dist install cmd/8l
- GOOS=linux GOARCH=386 CGO_ENABLED=1 CFLAGS=-m32 LDFLAGS=-m32 { go tool dist install pkg/runtime && go install std; }
- GOOS=windows GOARCH=386 { go tool dist install pkg/runtime && go install std; }
- GOOS=windows GOARCH=amd64 { go tool dist install pkg/runtime && go install std; }
- sudo apt-get update -qq - sudo apt-get update -qq
- sudo apt-get install -qq libgtk-3-dev - sudo apt-get install -qq libgtk-3-dev libgtk-3-0:i386