How to use PGroonga on Travis CI

You can use PGroonga on Travis CI.

PGroonga provides shell script to set up PGroonga on Travis CI.

Add the following configuration into your .travis.yml:

sudo: required
install:
  - curl --silent --location https://github.com/pgroonga/pgroonga/raw/master/data/travis/setup.sh | sh

sudo: required is important. The setup script uses sudo. So sudo: required is required.

The setup script runs CREATE EXTENSION pgroonga against template1 database. It means that you can use PGroonga without any instruction on new database.