ipfs-cluster/.travis.yml

51 lines
1.0 KiB
YAML
Raw Normal View History

2016-12-08 16:20:16 +00:00
language: go
os:
- linux
# - osx
2016-12-08 16:20:16 +00:00
go:
- '1.11.x'
services:
- docker
sudo: required
cache:
directories:
- $GOPATH/src/gx
2019-03-08 01:44:07 +00:00
- $GOPATH/pkg/mod
- $HOME/.cache/go-build
install: true
2019-03-08 01:44:07 +00:00
env:
- GO111MODULE=on
jobs:
include:
- stage: "Testing stage"
name: "Tests (all modules) + Coverage"
script:
- go test -v -coverprofile=coverage.txt -covermode=atomic ./...
after_success:
- bash <(curl -s https://codecov.io/bash)
- name: "Main Tests with stateless tracker"
script:
- go test -v . -tracker stateless
- name: "Golint and go vet"
script:
- go get -u golang.org/x/lint/golint
- 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 install
- docker pull ipfs/go-ipfs
- make test_sharness && make clean_sharness