Tests: add failfast, bump to go1.12, adjust codecov
This commit is contained in:
parent
5f7510bd2d
commit
bfd4b7d3ee
14
.codecov.yml
14
.codecov.yml
|
@ -14,3 +14,17 @@ coverage:
|
|||
only_pulls: false
|
||||
flags: null
|
||||
paths: null
|
||||
patch:
|
||||
default:
|
||||
# basic
|
||||
target: auto
|
||||
threshold: 10
|
||||
base: auto
|
||||
# advanced
|
||||
branches: null
|
||||
if_no_uploads: error
|
||||
if_not_found: success
|
||||
if_ci_failed: error
|
||||
only_pulls: false
|
||||
flags: null
|
||||
paths: null
|
|
@ -3,7 +3,7 @@ os:
|
|||
- linux
|
||||
# - osx
|
||||
go:
|
||||
- '1.11.x'
|
||||
- '1.12.x'
|
||||
services:
|
||||
- docker
|
||||
|
||||
|
@ -25,15 +25,15 @@ jobs:
|
|||
- stage: "Testing stage"
|
||||
name: "Tests (all modules) + Coverage"
|
||||
script:
|
||||
- go test -v -coverprofile=coverage.txt -covermode=atomic ./...
|
||||
- go test -v -failfast -coverprofile=coverage.txt -covermode=atomic ./...
|
||||
after_success:
|
||||
- bash <(curl -s https://codecov.io/bash)
|
||||
- name: "Main Tests with crdt consensus"
|
||||
script:
|
||||
- go test -v . -consensus crdt
|
||||
- go test -v -failfast . -consensus crdt
|
||||
- name: "Main Tests with stateless tracker"
|
||||
script:
|
||||
- go test -v . -tracker stateless
|
||||
- go test -v -failfast . -tracker stateless
|
||||
- name: "Golint and go vet"
|
||||
script:
|
||||
- go get -u golang.org/x/lint/golint
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
FROM golang:1.11-stretch AS builder
|
||||
FROM golang:1.12-stretch AS builder
|
||||
MAINTAINER Hector Sanjuan <hector@protocol.ai>
|
||||
|
||||
# This dockerfile builds and runs ipfs-cluster-service.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
FROM golang:1.11-stretch AS builder
|
||||
FROM golang:1.12-stretch AS builder
|
||||
MAINTAINER Hector Sanjuan <hector@protocol.ai>
|
||||
|
||||
# This build state just builds the cluster binaries
|
||||
|
|
2
ci/Jenkinsfile
vendored
2
ci/Jenkinsfile
vendored
|
@ -1,2 +0,0 @@
|
|||
golang([test: "go test -v ./..."])
|
||||
|
Loading…
Reference in New Issue
Block a user