6e43d272f7
Snap builds have broken again. It seems the credentials have expired without warning, even though they were not so old anyways. As promised, next time snaps would break, they would be removed. License: MIT Signed-off-by: Hector Sanjuan <code@hector.link>
59 lines
1.4 KiB
YAML
59 lines
1.4 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:
|
|
- go get -u github.com/mattn/goveralls
|
|
- go get -u golang.org/x/tools/cmd/cover
|
|
- make deps
|
|
- go test -v -coverprofile=coverage.out -covermode=count ./...
|
|
- $HOME/gopath/bin/goveralls -coverprofile=coverage.out -service=travis-ci
|
|
- name: "Main Tests with basic monitor"
|
|
script:
|
|
- go get -u github.com/mattn/goveralls
|
|
- go get -u golang.org/x/tools/cmd/cover
|
|
- make deps
|
|
- go test -v . -monitor basic
|
|
- name: "Main Tests with stateless tracker"
|
|
script:
|
|
- go get -u github.com/mattn/goveralls
|
|
- go get -u golang.org/x/tools/cmd/cover
|
|
- 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
|