From ac8980445b922c5ef7d43483c1bd120f5e2e7564 Mon Sep 17 00:00:00 2001 From: "steven.chiu" Date: Wed, 13 Mar 2019 14:41:19 +0800 Subject: [PATCH] Upload test report with github release --- .travis.yml | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 543ccf0..30ab262 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,13 +1,25 @@ language: go sudo: required go: -- 1.11 + - 1.11 install: - go get github.com/gorilla/websocket - go get github.com/gomodule/redigo/redis script: - - go test + - mkdir reports + - go get -u github.com/jstemmer/go-junit-report + - go test -v ${PKG_LIST} 2>&1 | go-junit-report > reports/testcase.xml + - go test -coverprofile=cover.out && go tool cover -html=cover.out -o reports/coverage.html before_script: -- docker-compose -f ci/docker-compose.yml up -d + - docker-compose -f ci/docker-compose.yml up -d services: -- docker \ No newline at end of file + - docker +deploy: + provider: releases + api_key: + secure: ET1YBzj+oCDch5XQYgvjvPDpFOcqxR2mJ7zpdGwXtkIpm93fRRCheoLJHcx2ndhsMiJE/eL5fxqFdncwQL576xTkHfjWOxUPWCGA+w6vy5ASY1RMFgu1BAkeLXxSiSa4Ioi2t/xZ8mUMHuTD5kPP4LHUyg135XIHYOtZiHMFcBor8oEMpWCi6krd05gA0SzTLKC6QV+7KDtL96LsZYzWwS7s8QiUKP+pw8s6vq8paDcagmGMbRn2KUNFl6tGxoAVSx6oJbGeLDo+7ieC+cm+9AO+uCVyUbFowTYA+G9BSy9aQTtem7BJsOQHK46JHG3V7yZDqtmVUs4fDhKp0xY0oQ5foOeEIWCiLMbjfto00x992U4Co5KSSWaftUXZxmiF3nugvMItXxEuRB64wCrQgLXT43oqUg06r92sWhUY4nIcuzxhUBKObH87qyaxAHu+WIi2Ed5FXV0G1iSPsGhT/JIeKjG5j036oQbHkdgUHNCR4YJfGYh0j9jg6AqeIlnUOZ6NXBRmpaGcJZCpyEqlUG2W+gQXx6KHAa9YRVywEXeoC+DGVhlM8hORARqDUhEyHzaaxvQMkyCLNZtL6ak7AVN5caLw2YgdAOyjr6sxHX2Mat7CxAVPtuHdK7L5d8hEXczJrrqZ2tEXSnD00k2ImSCHbkfLi3nW8fZjfAHDHY0= + file_glob: true + file: 'report/*' + skip_cleanup: true + on: + repo: stevenchiu7311/melody \ No newline at end of file