forked from canonical/dqlite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
38 lines (33 loc) · 1.15 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
dist: trusty
sudo: false
language: go
addons:
apt:
packages:
- realpath
before_install:
- go get github.com/go-playground/overalls
- go get github.com/mattn/goveralls
- go get github.com/golang/lint/golint
- go get github.com/tsenart/deadcode
- go get github.com/freeekanayaka/gh-asset
- sqlite_tmp_dir=/tmp/sqlite
- mkdir $sqlite_tmp_dir
- $GOPATH/bin/gh-asset -d $sqlite_tmp_dir -x CanonicalLtd sqlite "sqlite-amd64--enable-debug-.*.tar.gz"
- sudo cp $sqlite_tmp_dir/libsqlite3.so.* /usr/lib/x86_64-linux-gnu
- sudo cp $sqlite_tmp_dir/sqlite3.h /usr/include/sqlite3.h
- mkdir -p $GOPATH/src/github.com/hashicorp/raft
- raft_fork=https://github.com/freeekanayaka/raft.git
- git clone -b assorted-fixes $raft_fork $GOPATH/src/github.com/hashicorp/raft
script:
- go get -t -tags libsqlite3 ./...
- go vet
- golint
- deadcode
- project=github.com/CanonicalLtd/dqlite
- GO_RAFT_TEST_LATENCY=10.0 $GOPATH/bin/overalls -ignore internal/protocol -project $project -covermode=count -- -tags libsqlite3 -timeout 240s
- $GOPATH/bin/goveralls -coverprofile overalls.coverprofile -service=travis-ci
go:
- "1.9"
- "1.10"
- "master"