language: c

dist: trusty


services:
  - postgresql

before_script:
  # Add an IPv6 config - see the corresponding Travis issue
  # https://github.com/travis-ci/travis-ci/issues/8361
  - if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
      sudo sh -c 'echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6';
    fi
  - psql -c 'create role gabor;' -U postgres
  - psql -c 'alter role gabor with password "gabor";' -U postgres
  - psql -c 'create database testje;' -U postgres
  - psql -c 'grant all privileges on database testje to gabor;' -U postgres
  - psql -c 'grant all privileges on database testje to gabor;' -U gabor -d testje

before_install:
  - sudo chmod 777 /var/log/syslog
  - sudo ln -s /usr/bin/make /usr/bin/gmake
  - sudo sudo apt-get install libbsd-dev
  
script: ./runtests.sh

language: c

dist: trusty


services:
  - postgresql

before_script:
  # Add an IPv6 config - see the corresponding Travis issue
  # https://github.com/travis-ci/travis-ci/issues/8361
  - if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
      sudo sh -c 'echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6';
    fi
  - psql -c 'create role gabor;' -U postgres
  - psql -c "alter role gabor with password 'gabor';" -U postgres
  - psql -c 'create database testje;' -U postgres
  - psql -c 'grant all privileges on database testje to gabor;' -U postgres
  - psql -c 'create table boeken (id integer, titel varchar(100));' -U gabor -d testje
  - psql -c "insert into boeken values(1,'handboek')" -U gabor -d testje
  - psql -c "insert into boeken values(2,'telefoongids')" -U gabor -d testje

before_install:
  - sudo chmod 777 /var/log/syslog
  - sudo ln -s /usr/bin/make /usr/bin/gmake
  - sudo sudo apt-get install libbsd-dev
  
script: ./runtests.sh

Add Postgres config to Travis CI.
Add Postgres config to Travis CI.
