# Travis CI (http://travis-ci.org/) is a continuous integration service for
# open source projects. This file configures it to run unit tests for rtfblog.

language: go

go:
    - 1.5
    - 1.6
    - tip

before_install:
    - go get -v golang.org/x/tools/cmd/cover
    - go get -v github.com/mattn/goveralls
    - go get -v github.com/steinbacher/goose/cmd/goose
    - go get -v github.com/jteeuwen/go-bindata/...
    - npm install -g grunt-cli bower browserify json
    - sudo /etc/init.d/postgresql stop

script:
    - make
    - ./scripts/run-pg-tests.sh
    - ./scripts/run-sqlite-tests.sh

after_script:
    - $HOME/gopath/bin/goveralls -coverprofile=profile.cov -service=travis-ci

# Travis CI (http://travis-ci.org/) is a continuous integration service for
# open source projects. This file configures it to run unit tests for rtfblog.

language: go

go:
    - 1.5
    - 1.6
    - tip

before_install:
    - go get -v golang.org/x/tools/cmd/cover
    - go get -v github.com/mattn/goveralls
    - go get -v github.com/steinbacher/goose/cmd/goose
    - go get -v github.com/jteeuwen/go-bindata/...
    - npm install -g grunt-cli bower browserify json
    - sudo apt-get purge postgresql-client-9.5
    - sudo apt-get install postgresql-server-dev-9.4
    - sudo /etc/init.d/postgresql stop

script:
    - make
    - ./scripts/run-pg-tests.sh
    - ./scripts/run-sqlite-tests.sh

after_script:
    - $HOME/gopath/bin/goveralls -coverprofile=profile.cov -service=travis-ci

Fix build on Travis by switching to PG 9.4
Fix build on Travis by switching to PG 9.4

Travis support has recommended that since they seem to be experiencing
problems with 9.5 on Precise images.
