ipfs-cluster/.travis.yml
Hector Sanjuan 81ab0d6c43 Move to codecov.io
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2019-02-20 14:11:58 +00:00

54 lines
1.1 KiB
YAML

language: go
os:
- linux
# - osx
go:
- '1.11.x'
services:
- docker
sudo: required
cache:
directories:
- $GOPATH/src/gx
install: true
jobs:
include:
- stage: "Testing stage"
name: "Tests (all modules) + Coverage"
script:
- make deps
- go test -v -coverprofile=coverage.txt -covermode=atomic ./...
after_success:
- bash <(curl -s https://codecov.io/bash)
- name: "Main Tests with basic monitor"
script:
- make deps
- go test -v . -monitor basic
- name: "Main Tests with stateless tracker"
script:
- make deps
- go test -v . -tracker stateless
- name: "Golint and go vet"
script:
- go get -u golang.org/x/lint/golint
- make deps
- make check
- make service
- make ctl
- name: "Docker and Compose build"
script:
- make docker
- make docker-compose
- name: "Sharness"
script:
- sudo apt-get update
- sudo apt-get install -y jq curl
- make deps
- make install
- docker pull ipfs/go-ipfs
- make test_sharness && make clean_sharness