Browse Source

codec: travis.yml: fix

Ugorji Nwoke 6 years ago
parent
commit
7f9468bb21
1 changed files with 9 additions and 4 deletions
  1. 9 4
      .travis.yml

+ 9 - 4
.travis.yml

@@ -7,15 +7,20 @@ go:
   - 1.10.x
   - 1.10.x
   - 1.9.x
   - 1.9.x
   - 1.8.x
   - 1.8.x
-  - 1.7.x  # go testing suite support, which we use, was introduced in go 1.7
+  - 1.7.x
+  # go testing suite support, which we use, was introduced in go 1.7
 script:
 script:
   - go test -tags "alltests" -run Suite -coverprofile coverage.txt github.com/ugorji/go/codec
   - go test -tags "alltests" -run Suite -coverprofile coverage.txt github.com/ugorji/go/codec
   - go test -tags "alltests safe" -run Suite -coverprofile coverage.safe.txt github.com/ugorji/go/codec
   - go test -tags "alltests safe" -run Suite -coverprofile coverage.safe.txt github.com/ugorji/go/codec
   - go test -tags "alltests codecgen" -run Suite -coverprofile coverage.codecgen.txt github.com/ugorji/go/codec
   - go test -tags "alltests codecgen" -run Suite -coverprofile coverage.codecgen.txt github.com/ugorji/go/codec
-  - GOARCH=386 go test -tags "alltests" -run Suite -coverprofile coverage.386.txt github.com/ugorji/go/codec
+  # we use if block below, so that we still return with success even if skipped.
+  # Previously, we used [[...]] && go test ..., which returned exit code 0 and broke the build.
   - |
   - |
-    # we use if block, so that we still return with success
-    if [[ "${TRAVIS_GO_VERSION}" == "master" ]]; then
+    if [[ "${TRAVIS_GO_VERSION}" == "1.12.x" ]]; then
+    GOARCH=386 go test -tags "alltests" -run Suite -coverprofile coverage.386.txt github.com/ugorji/go/codec
+    fi
+  - |
+    if [[ "${TRAVIS_GO_VERSION}" == "1.12.x" ]]; then
     echo "XXXX RACE" && go test "-race" -tags "alltests" -run Suite -coverprofile coverage.race.txt github.com/ugorji/go/codec;
     echo "XXXX RACE" && go test "-race" -tags "alltests" -run Suite -coverprofile coverage.race.txt github.com/ugorji/go/codec;
     fi
     fi