Commit 62f3cc82 authored by Jay's avatar Jay
Browse files

yup

parent 4cc2ce76
Loading
Loading
Loading
Loading
+10 −5
Original line number Diff line number Diff line
language: generic  # Since we use conda, just go generic
sudo: true

branches:
@@ -11,6 +10,9 @@ os:
  - osx

env:
  global:
    - PGPORT=5433
  matrix:
    - PYTHON_VERSION=3.5
    - PYTHON_VERSION=3.6
    - PYTHON_VERSION=3.7
@@ -19,10 +21,12 @@ env:
services:
  - postgresql
addons:
  postgresql: 9.6
  postgresql: '10'
  apt:
    packages:
    - postgresql-9.6-postgis-2.3
      - postgresql-10-postgis-2.4
      - postgresql-10-postgis-2.4-scripts
      - postgresql-client-10
  
before_install:
  # We do this conditionally because it saves us some downloading if the
@@ -55,8 +59,9 @@ before_install:
  - export autocnet_config=sample.yml

before_script:
  - psql -c "create database travis_ci_test;" -U postgres
  - psql -d travis_ci_test -c "CREATE EXTENSION postgis;" -U postgres
  # Create the database
  - PGPASSWORD=password psql -U testuser -c "create database travis_ci_test;"
  - PGPASSWORD=password psql -U testuser -d travis_ci_test -c "CREATE EXTENSION postgis;"

script:
  - pytest autocnet tests
+4 −4
Original line number Diff line number Diff line
@@ -16,11 +16,11 @@ cluster:
### Database Configuration ###
database:
    type: 'postgresql'
    username: 'postgres'
    password: ''
    username: 'testuser'
    password: 'password'
    host: 'localhost'
    port: 5432 # This is a mapped port when postgresql is containerized, e.g., 8085
    pgbouncer_port: 5432  # This is normally a different port, e.g., 8083
    port: 5433 # This is a mapped port when postgresql is containerized, e.g., 8085
    pgbouncer_port: 5433  # This is normally a different port, e.g., 8083
    # The name of the database to connect to.  Tables will be created inside this DB.
    name: 'travis_ci_test' # This needs to be all lowercase for PostGreSQL!
    # The number of seconds to wait while attemping to connect to the DB.