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