From 72d321525953fc43ea50843fbef08e50951103fc Mon Sep 17 00:00:00 2001 From: Michail Kargakis Date: Fri, 27 Mar 2020 21:24:09 +0100 Subject: [PATCH] Build and test CI improvements --- .gitignore | 2 ++ .travis.yml | 8 ++++---- appveyor.yml | 4 ++-- go.mod | 1 + 4 files changed, 9 insertions(+), 6 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9c1d986 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +sftpfs/file1 +sftpfs/test/ diff --git a/.travis.yml b/.travis.yml index 0637db7..067282d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,8 +2,8 @@ sudo: false language: go go: - - 1.9 - - "1.10" + - "1.13" + - "1.14" - tip os: @@ -16,6 +16,6 @@ matrix: fast_finish: true script: - - go build - - go test -race -v ./... + - go build -v ./... + - go test -count=1 -cover -race -v ./... diff --git a/appveyor.yml b/appveyor.yml index a633ad5..5d2f34b 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -10,6 +10,6 @@ build_script: go get -v github.com/spf13/afero/... - go build github.com/spf13/afero + go build -v github.com/spf13/afero/... test_script: -- cmd: go test -race -v github.com/spf13/afero/... +- cmd: go test -count=1 -cover -race -v github.com/spf13/afero/... diff --git a/go.mod b/go.mod index f97c40e..4b2384b 100644 --- a/go.mod +++ b/go.mod @@ -2,6 +2,7 @@ module github.com/spf13/afero require ( github.com/pkg/sftp v1.10.1 + golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586 golang.org/x/text v0.3.0 )