language: ruby
matrix:
  include:
    - os: linux
      dist: trusty
      sudo: required
      services:
        - postgresql
      addons:
          postgresql: "9.5"
    - os: osx
      osx_image: xcode8
install:
    - "[ $TRAVIS_OS_NAME = osx ] && pg_ctl -D /usr/local/var/postgres start && sleep 3 || true"

before_script:
  - sudo psql -U postgres -c 'CREATE DATABASE test;'

script:
  - export PAGER=cat
  - eval "$(curl -sL swift.vapor.sh/ci)"
  - eval "$(curl -sL swift.vapor.sh/codecov)"

language: ruby
matrix:
  include:
    - os: linux
      dist: trusty
      sudo: required
      services:
        - postgresql
      addons:
          postgresql: "9.5"
    - os: osx
      osx_image: xcode8
install:
    - "[ $TRAVIS_OS_NAME = osx ] && pg_ctl -D /usr/local/var/postgres start && sleep 3 || true"

before_script:
  - export PAGER=cat
  - sudo psql -U postgres -c 'CREATE DATABASE test;'

script:
  - eval "$(curl -sL swift.vapor.sh/ci)"
  - eval "$(curl -sL swift.vapor.sh/codecov)"

Put export before psql command
Put export before psql command