From acf53d2bdb6c78d0048dc8a42ba82085c57dbe49 Mon Sep 17 00:00:00 2001 From: n0vad3v Date: Sat, 23 May 2020 13:50:59 +0800 Subject: [PATCH] Combine to Travis --- .travis.yml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 862a283..e484277 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,20 +2,28 @@ language: go go: - 1.13 - + +env: GO111MODULE=on arch: - amd64 - arm64 - os: - windows - osx - linux -env: GO111MODULE=on +script: sh scripts/build.sh $TRAVIS_OS_NAME $TRAVIS_CPU_ARCH -script: - - sh scripts/build.sh $TRAVIS_OS_NAME $TRAVIS_CPU_ARCH +jobs: + include: + - stage: "Unit Tests" + arch: + - amd64 + os: + - linux + script: + - go test -v -cover encoder_test.go encoder.go helper.go + - go test -v -cover helper_test.go helper.go deploy: provider: releases