Skip to content

Commit 5b18d12

Browse files
Added travis configuration
1 parent 1e148d3 commit 5b18d12

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.travis.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
language: go
2+
go:
3+
- "1.10.x"
4+
- "1.11.x"
5+
- master
6+
dist: xenial
7+
addons:
8+
postgresql: "10"
9+
cache:
10+
directories:
11+
- $HOME/gopath/pkg/mod
12+
env:
13+
global:
14+
- POSTGRES_DSN="postgres://postgres@localhost:5432/goengine?sslmode=disable&client_encoding=UTF8"
15+
16+
matrix:
17+
allow_failures:
18+
- go: master
19+
20+
before_install:
21+
- curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
22+
23+
install:
24+
- dep ensure -v
25+
26+
before_script:
27+
- psql -U postgres -c "CREATE DATABASE goengine ENCODING 'UTF8';"
28+
29+
script:
30+
- go test -tags=unit -race ./...
31+
- go test -tags=integration -race ./...
32+
- go run -race example/aggregate/*.go
33+
- go run -race example/repository/*.go
34+

0 commit comments

Comments
 (0)