ipfs-cluster/.travis.yml

54 lines
1.1 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)
Consensus: add new "crdt" consensus component This adds a new "crdt" consensus component using go-ds-crdt. This implies several refactors to fully make cluster consensus-component independent: * Delete mapstate and fully adopt dsstate (after people have migrated). * Return errors from state methods rather than ignoring them. * Add a new "datastore" modules so that we can configure datastores in the main configuration like other components. * Let the consensus components fully define the "state.State". Thus, they do not receive the state, they receive the storage where we put the state (a go-datastore). * Allow to customize how the monitor component obtains Peers() (the current peerset), including avoiding using the current peerset. At the moment the crdt consensus uses the monitoring component to define the current peerset. Therefore the monitor component cannot rely on the consensus component to produce a peerset. * Re-factor/re-implementation of "ipfs-cluster-service state" operations. Includes the dissapearance of the "migrate" one. The CRDT consensus component defines creates a crdt-datastore (with ipfs-lite) and uses it to intitialize a dssate. Thus the crdt-store is elegantly wrapped. Any modifications to the state get automatically replicated to other peers. We store all the CRDT DAG blocks in the local datastore. The consensus components only expose a ReadOnly state, as any modifications to the shared state should happen through them. DHT and PubSub facilities must now be created outside of Cluster and passed in so they can be re-used by different components.
2019-02-20 14:24:25 +00:00
- name: "Main Tests with crdt consensus"
script:
- go test -v . -consensus crdt
- 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