fixing CI

This commit is contained in:
Bora M. Alper 2020-12-23 09:59:01 +03:00
parent 0c515a8f61
commit f7ccd0860b
No known key found for this signature in database
GPG Key ID: 8F1A9504E1BD114D
2 changed files with 7 additions and 17 deletions

View File

@ -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:

View File

@ -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