Browse Source

Merge pull request #7933 from gyuho/travis

travis: test builds in other OSes
Gyu-Ho Lee 8 years ago
parent
commit
c6219a209d
1 changed files with 12 additions and 0 deletions
  1. 12 0
      .travis.yml

+ 12 - 0
.travis.yml

@@ -14,6 +14,8 @@ notifications:
 env:
 env:
   matrix:
   matrix:
    - TARGET=amd64
    - TARGET=amd64
+   - TARGET=darwin-amd64
+   - TARGET=windows-amd64
    - TARGET=arm64
    - TARGET=arm64
    - TARGET=arm
    - TARGET=arm
    - TARGET=386
    - TARGET=386
@@ -24,6 +26,10 @@ matrix:
   allow_failures:
   allow_failures:
     - go: tip
     - go: tip
   exclude:
   exclude:
+  - go: tip
+    env: TARGET=darwin-amd64
+  - go: tip
+    env: TARGET=windows-amd64
   - go: tip
   - go: tip
     env: TARGET=arm
     env: TARGET=arm
   - go: tip
   - go: tip
@@ -58,6 +64,12 @@ script:
       amd64)
       amd64)
         GOARCH=amd64 ./test
         GOARCH=amd64 ./test
         ;;
         ;;
+      darwin-amd64)
+        GO_BUILD_FLAGS="-a -v"  GOPATH="" GOOS=darwin GOARCH=amd64 ./build
+        ;;
+      windows-amd64)
+        GO_BUILD_FLAGS="-a -v"  GOPATH="" GOOS=windows GOARCH=amd64 ./build
+        ;;
       386)
       386)
         GOARCH=386 PASSES="build unit" ./test
         GOARCH=386 PASSES="build unit" ./test
         ;;
         ;;