Commit e3eb9781 authored by Jay's avatar Jay
Browse files

Swapping to a build matrix

parent 34561549
Loading
Loading
Loading
Loading
+14 −16
Original line number Diff line number Diff line
@@ -6,28 +6,31 @@ branches:
    - dev
    - testing

os:
  - linux
  - osx
matrix:
  include:
    - os: linux
      dist: trusty
      env: PYTHON_VERSION=3.6
    - os: linux
      dist: trusty
      env: PYTHON_VERSION=3.7
    
env:
  global:
    - PGPORT=5433
  matrix:
    - PYTHON_VERSION=3.5
    - PYTHON_VERSION=3.6
    - PYTHON_VERSION=3.7

# Setup a postgresql instance w/postgis
services:
  - postgresql
addons:
  postgresql: '10'
  postgresql: 9.6
  apt:
    packages:
      - postgresql-10-postgis-2.4
      - postgresql-10-postgis-2.4-scripts
      - postgresql-client-10
    - postgresql-9.6-postgis-2.3

before_script:
  - psql -c 'create database travis_ci_test;' -U postgres
  - psql -U postgres -c "create extension postgis"
  
before_install:
  # We do this conditionally because it saves us some downloading if the
@@ -52,11 +55,6 @@ before_install:
  - conda env update -n test -f environment.yml
  - export PROJ_LIB=$CONDA_PREFIX/share/proj  

  # Stop/Start postgresql
  - sudo /etc/init.d/postgresql stop
  - sleep 3
  - sudo /etc/init.d/postgresql start

  # Setup the database user
  - psql -h /tmp -c "CREATE USER testuser WITH PASSWORD 'password'" -U postgres
  - psql -h /tmp -c "ALTER ROLE testuser SUPERUSER" -U postgres