github.com/neugram/ng@v0.0.0-20180309130942-d472ff93d872/.ci-test (about)

     1  #!/bin/sh
     2  # TODO: write this in ng
     3  set -e
     4  touch coverage.txt
     5  for d in $(go list ./... | grep -v vendor); do
     6      go test -v -coverprofile=profile.out -covermode=atomic $d
     7      if [ -f profile.out ]; then
     8          cat profile.out >> coverage.txt
     9          rm profile.out
    10      fi
    11  done