Tests: add failfast, bump to go1.12, adjust codecov

This commit is contained in:
Hector Sanjuan 2019-05-16 12:15:53 +02:00
parent 5f7510bd2d
commit bfd4b7d3ee
5 changed files with 20 additions and 8 deletions

View File

@ -13,4 +13,18 @@ coverage:
if_ci_failed: error
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

View File

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

View File

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

View File

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

@ -1,2 +0,0 @@
golang([test: "go test -v ./..."])