language: common-lisp
sudo: required

env:
  matrix:
    - LISP=ccl
    - LISP=ccl  PGVERSION=9.6
    - LISP=sbcl
    - LISP=sbcl PGVERSION=9.6

install:
  - ./.travis.sh lisp_install
  - ./.travis.sh pgdg_repositories
  - ./.travis.sh postgresql_install
  - sudo apt-get install -y unzip libsqlite3-dev gawk freetds-dev

before_script:
  - PGUSER=postgres createuser -S -R -D -E -l pgloader
  - PGUSER=postgres createdb -E UTF8 -O pgloader pgloader
  - PGUSER=postgres psql -d pgloader -c "create extension ip4r;"
  - PGUSER=pgloader psql -d pgloader -c "create schema expected;"
  - PGUSER=pgloader psql -d pgloader -c "create schema err;"
  - make --version
  - make "CL=$LISP"

script:
  - PGUSER=pgloader make "CL=$LISP" check

notifications:
  email:
    - dim@tapoueh.org
