From f7ccd0860be9775cee1cb0a28102287d89b8b2f8 Mon Sep 17 00:00:00 2001 From: "Bora M. Alper" Date: Wed, 23 Dec 2020 09:59:01 +0300 Subject: [PATCH] fixing CI --- README.md | 2 +- appveyor.yml | 22 ++++++---------------- 2 files changed, 7 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 029c4d1..99490e6 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # magnetico *Autonomous (self-hosted) BitTorrent DHT search engine suite.* -[![chat on gitter](https://badges.gitter.im/gitterHQ/gitter.png)](https://gitter.im/magnetico-dev/magnetico-dev) [![Go](https://github.com/boramalper/magnetico/workflows/Go/badge.svg)](https://github.com/boramalper/magnetico/actions) [![Build Status on Travis](https://travis-ci.org/boramalper/magnetico.svg?branch=master)](https://travis-ci.org/boramalper/magnetico) [![Build status on AppVeyor](https://ci.appveyor.com/api/projects/status/u2jtbe6jutya7p0x/branch/master?svg=true)](https://ci.appveyor.com/project/boramalper/magnetico/branch/master) [![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/1029/badge)](https://bestpractices.coreinfrastructure.org/projects/1029) +[![chat on gitter](https://badges.gitter.im/gitterHQ/gitter.png)](https://gitter.im/magnetico-dev/magnetico-dev) [![Go](https://github.com/boramalper/magnetico/workflows/Go/badge.svg)](https://github.com/boramalper/magnetico/actions) [![Build status on AppVeyor](https://ci.appveyor.com/api/projects/status/u2jtbe6jutya7p0x/branch/master?svg=true)](https://ci.appveyor.com/project/boramalper/magnetico/branch/master) [![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/1029/badge)](https://bestpractices.coreinfrastructure.org/projects/1029) magnetico is the first autonomous (self-hosted) BitTorrent DHT search engine suite that is *designed for end-users*. The suite consists of two packages: diff --git a/appveyor.yml b/appveyor.yml index 10aa919..fc69aed 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -2,10 +2,6 @@ version: "{branch}-{build}" platform: x64 -branches: - only: - - master - # Source Config clone_folder: c:\gopath\src\magnetico shallow_clone: true @@ -13,14 +9,12 @@ shallow_clone: true # Build host environment: GOPATH: c:\gopath - GOVERSION: 1.11 - DEPVERSION: 0.5.0 + GOVERSION: 1.15.6 install: # Install the specific Go version. - rmdir c:\go /s /q - appveyor DownloadFile https://storage.googleapis.com/golang/go%GOVERSION%.windows-amd64.msi - - appveyor DownloadFile https://github.com/golang/dep/releases/download/v%DEPVERSION%/dep-windows-amd64 -FileName c:\dep - msiexec /i go%GOVERSION%.windows-amd64.msi /q - set Path=c:\go\bin;c:\gopath\bin - go version @@ -29,16 +23,12 @@ install: - go get -u -v honnef.co/go/tools/cmd/staticcheck before_build: - - go-bindata -o="magneticow\bindata.go" -prefix="magneticow/data/" magneticow/data/... - - cd c:\gopath\src\magnetico - - c:\dep ensure -v + - make staticcheck + - make check-formatting build_script: - - go install --tags fts5 "-ldflags=-s -w -X main.compiledOn=`date -u +%Y-%m-%dT%H:%M:%SZ`" github.com/boramalper/magnetico/cmd/magneticod - - go install magnetico/magneticod - - go install magnetico/magneticow + - make magneticod + - make magneticow test_script: - - go test -cover magnetico/magneticod/... - - go test -cover magnetico/magneticow/... - - go test -cover magnetico/persistence/... + - make test