Jelajahi Sumber

Separate Coveralls submission from coverage script

Taylor Gerring 10 tahun lalu
induk
melakukan
57c6caf146
2 mengubah file dengan 1 tambahan dan 3 penghapusan
  1. 1 0
      .travis.yml
  2. 0 3
      gocoverage.sh

+ 1 - 0
.travis.yml

@@ -21,6 +21,7 @@ before_script:
   # - go test -race ./...
   # - go test -race ./...
 script:
 script:
   - ./gocoverage.sh
   - ./gocoverage.sh
+  - if [ "$COVERALLS_TOKEN" ]; then goveralls -coverprofile=profile.cov -service=travis-ci -repotoken $COVERALLS_TOKEN; fi
 env:
 env:
   global:
   global:
     - PKG_CONFIG_PATH=/opt/qt54/lib/pkgconfig
     - PKG_CONFIG_PATH=/opt/qt54/lib/pkgconfig

+ 0 - 3
gocoverage.sh

@@ -27,6 +27,3 @@ done
 
 
 $GOROOT/bin/go tool cover -func profile.cov
 $GOROOT/bin/go tool cover -func profile.cov
 
 
-# To submit the test coverage result to coveralls.io,
-# use goveralls (https://github.com/mattn/goveralls)
-goveralls -coverprofile=profile.cov -service=travis-ci -repotoken $COVERALLS_TOKEN