Browse Source

codec: travis.yml: fixes

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

+ 4 - 1
.travis.yml

@@ -14,7 +14,10 @@ script:
   - 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
   - |
-    [[ "${TRAVIS_GO_VERSION}" == "master" ]] && echo "XXXX RACE" && go test "-race" -tags "alltests" -run Suite -coverprofile coverage.race.txt github.com/ugorji/go/codec
+    # we use if block, so that we still return with success
+    if [[ "${TRAVIS_GO_VERSION}" == "master" ]]; then
+    echo "XXXX RACE" && go test "-race" -tags "alltests" -run Suite -coverprofile coverage.race.txt github.com/ugorji/go/codec;
+    fi
 
 after_success:
   - bash <(curl -s https://codecov.io/bash)