Loading .travis.yml +9 −6 Original line number Diff line number Diff line dist: trusty language: generic # Since we use conda, just go generic sudo: false sudo: true branches: only: Loading @@ -12,6 +11,8 @@ os: - osx env: global: - PGPORT=5433 - PYTHON_VERSION=3.5 - PYTHON_VERSION=3.6 - PYTHON_VERSION=3.7 Loading @@ -20,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 Loading @@ -50,8 +53,8 @@ before_install: - export autocnet_config=sample.yml before_script: - psql -c 'create database travis_ci_test;' -U postgres t- psql -d travis_ci_test -c "CREATE EXTENSION postgis;" - psql -c "create database travis_ci_test;" -U postgres - psql -d travis_ci_test -c "CREATE EXTENSION postgis;" -U postgres script: - pytest autocnet tests Loading sample.yml +2 −2 Original line number Diff line number Diff line Loading @@ -19,8 +19,8 @@ database: username: 'postgres' 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. Loading Loading
.travis.yml +9 −6 Original line number Diff line number Diff line dist: trusty language: generic # Since we use conda, just go generic sudo: false sudo: true branches: only: Loading @@ -12,6 +11,8 @@ os: - osx env: global: - PGPORT=5433 - PYTHON_VERSION=3.5 - PYTHON_VERSION=3.6 - PYTHON_VERSION=3.7 Loading @@ -20,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 Loading @@ -50,8 +53,8 @@ before_install: - export autocnet_config=sample.yml before_script: - psql -c 'create database travis_ci_test;' -U postgres t- psql -d travis_ci_test -c "CREATE EXTENSION postgis;" - psql -c "create database travis_ci_test;" -U postgres - psql -d travis_ci_test -c "CREATE EXTENSION postgis;" -U postgres script: - pytest autocnet tests Loading
sample.yml +2 −2 Original line number Diff line number Diff line Loading @@ -19,8 +19,8 @@ database: username: 'postgres' 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. Loading