forked from ipfs-cluster/ipfs-cluster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
51 lines (46 loc) · 1.14 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
language: go
os:
- linux
# - osx
go:
- '1.15.x'
services:
- docker
sudo: required
cache:
directories:
- $GOPATH/pkg/mod
- $HOME/.cache/go-build
install: true
env:
- GO111MODULE=on
jobs:
include:
- stage: "Testing stage"
name: "Tests (all modules) + Coverage"
script:
- travis_wait go test -v -timeout 15m -coverprofile=coverage.txt -covermode=atomic ./...
after_success:
- bash <(curl -s https://codecov.io/bash)
- name: "Main Tests with raft consensus"
script:
- travis_wait go test -v -timeout 15m -failfast -consensus raft .
- name: "Golint, go vet, binary builds"
script:
- go get -u golang.org/x/lint/golint
- go get honnef.co/go/tools/cmd/staticcheck
- make check
- make service
- make ctl
- make follow
- 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