forked from freeeve/cq
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.travis.yml
36 lines (30 loc) · 1.09 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
language: go
go:
- 1.4
env:
- NEO_VERSION="2.2.1"
before_script:
- go get gopkg.in/check.v1
- go get github.com/axw/gocov/gocov
- go get github.com/mattn/goveralls
- export PATH=$PATH:$HOME/gopath/bin/
after_success:
- tail -n +2 typescov.out >> bench.out
- tail -n +2 cov.out >> bench.out
- goveralls -coverprofile=bench.out
before_install:
- go get golang.org/x/tools/cmd/cover
- wget dist.neo4j.org/neo4j-community-$NEO_VERSION-unix.tar.gz
- tar -xzf neo4j-community-$NEO_VERSION-unix.tar.gz
- echo "org.neo4j.server.transaction.timeout=1" >> neo4j-community-$NEO_VERSION/conf/neo4j-server.properties
- neo4j-community-$NEO_VERSION/bin/neo4j start
- curl -u neo4j:neo4j -H accept:application/json -H content-type:application/json http://localhost:7474/user/neo4j/password -d '{"password":"test"}'
install:
- go get gopkg.in/cq.v1
script:
- cd ../../../gopkg.in/cq.v1/
- cd types
- go test -covermode=count -coverprofile=../typescov.out
- cd ..
- go test -covermode=count -coverprofile=cov.out
- go test -check.b -covermode=count -coverprofile=bench.out