Skip to content

Commit

Permalink
Merge pull request #30 from c2h5oh/travis
Browse files Browse the repository at this point in the history
Test more modern golang on more modern postgresql
  • Loading branch information
VojtechVitek committed Dec 5, 2018
2 parents 768ee0b + 07a85c1 commit 1c2483f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
21 changes: 16 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,25 @@ notifications:
language: go

go:
- 1.7.x
- 1.8.x
- tip
- 1.10.x
- 1.11.x

env:
global:
- GOARCH=amd64
- TEST_HOST=127.0.0.1

addons:
postgresql: 9.4
postgresql: "10"
apt:
packages:
- postgresql-10
- postgresql-client-10

env: GOARCH=amd64 TEST_HOST=127.0.0.1
before_install:
- sudo sed -i -e '/local.*peer/s/postgres/all/' -e 's/peer\|md5/trust/g' /etc/postgresql/*/main/pg_hba.conf
- "sudo sed -i 's/port = 5433/port = 5432/' /etc/postgresql/10/main/postgresql.conf"
- "sudo service postgresql restart 10"

install:
- mkdir -p $GOPATH/src/upper.io
Expand Down
2 changes: 1 addition & 1 deletion bond_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ func TestSlices(t *testing.T) {

func TestSelectOnlyIDs(t *testing.T) {
var ids []struct {
id int64 `db:"id"`
Id int64 `db:"id"`
}
err := DB.Account.Find(db.Cond{}).Select("id").All(&ids)
assert.NoError(t, err)
Expand Down

0 comments on commit 1c2483f

Please sign in to comment.