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 # magnetico
*Autonomous (self-hosted) BitTorrent DHT search engine suite.* *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 magnetico is the first autonomous (self-hosted) BitTorrent DHT search engine suite that is *designed
for end-users*. The suite consists of two packages: for end-users*. The suite consists of two packages:

View File

@ -2,10 +2,6 @@ version: "{branch}-{build}"
platform: x64 platform: x64
branches:
only:
- master
# Source Config # Source Config
clone_folder: c:\gopath\src\magnetico clone_folder: c:\gopath\src\magnetico
shallow_clone: true shallow_clone: true
@ -13,14 +9,12 @@ shallow_clone: true
# Build host # Build host
environment: environment:
GOPATH: c:\gopath GOPATH: c:\gopath
GOVERSION: 1.11 GOVERSION: 1.15.6
DEPVERSION: 0.5.0
install: install:
# Install the specific Go version. # Install the specific Go version.
- rmdir c:\go /s /q - rmdir c:\go /s /q
- appveyor DownloadFile https://storage.googleapis.com/golang/go%GOVERSION%.windows-amd64.msi - 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 - msiexec /i go%GOVERSION%.windows-amd64.msi /q
- set Path=c:\go\bin;c:\gopath\bin - set Path=c:\go\bin;c:\gopath\bin
- go version - go version
@ -29,16 +23,12 @@ install:
- go get -u -v honnef.co/go/tools/cmd/staticcheck - go get -u -v honnef.co/go/tools/cmd/staticcheck
before_build: before_build:
- go-bindata -o="magneticow\bindata.go" -prefix="magneticow/data/" magneticow/data/... - make staticcheck
- cd c:\gopath\src\magnetico - make check-formatting
- c:\dep ensure -v
build_script: 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 - make magneticod
- go install magnetico/magneticod - make magneticow
- go install magnetico/magneticow
test_script: test_script:
- go test -cover magnetico/magneticod/... - make test
- go test -cover magnetico/magneticow/...
- go test -cover magnetico/persistence/...