From f71e6baaf2e0d387a847f8e599af7d75be650283 Mon Sep 17 00:00:00 2001 From: Eyal Posener Date: Fri, 5 Jul 2019 14:39:11 +0300 Subject: [PATCH] Travis: remove test.sh, improve travis file --- .travis.yml | 16 ++++++++-------- test.sh | 12 ------------ 2 files changed, 8 insertions(+), 20 deletions(-) delete mode 100755 test.sh diff --git a/.travis.yml b/.travis.yml index 2fae945..6ba8d86 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,16 +1,16 @@ language: go -sudo: false go: - - 1.11 + - tip + - 1.12.x + - 1.11.x - 1.10.x - - 1.9 - - 1.8 - -before_install: - - go get -u -t ./... script: - - GO111MODULE=on ./test.sh + - go test -race -coverprofile=coverage.txt -covermode=atomic ./... after_success: - bash <(curl -s https://codecov.io/bash) + +matrix: + allow_failures: + - go: tip \ No newline at end of file diff --git a/test.sh b/test.sh deleted file mode 100755 index 56bfcf1..0000000 --- a/test.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/env bash - -set -e -echo "" > coverage.txt - -for d in $(go list ./... | grep -v vendor); do - go test -v -race -coverprofile=profile.out -covermode=atomic $d - if [ -f profile.out ]; then - cat profile.out >> coverage.txt - rm profile.out - fi -done \ No newline at end of file