Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 3 additions & 23 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ language: python

sudo: required

dist: precise

cache:
directories:
- $HOME/miniconda
Expand All @@ -26,25 +24,10 @@ services:
- postgresql

addons:
postgresql: "9.5"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great! 😄

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume mysql is built in already?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

postgresql too but somehow it will be 2.3 😕
So I guess we need to specify a newer version.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2.3 is the postgis version. I think explicit definition is better so that we know exactly what database versions and extension versions we are using. 😃

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No idea how to specify version of mysql though.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried a few things and they all failed. I don't really like to pin versions unless we don't have a choice. Without pinning we can catch errors early when something is updated.

apt:
packages:
# FIXME: when activating the services above I don't think these are needed.
- odbcinst1debian2
- odbcinst
- tdsodbc
- e2fsprogs
# FIXME: the dependencies below can probably be replaced by conda.
- libc6
- freetds-dev
- freetds-bin
- unixodbc
- unixodbc-dev
- mysql-client
# FIXME: I don't see the need for these anywhere.
- cmake
- libproj-dev
- libgeos-dev
- libspatialite-dev
- postgresql-9.5-postgis-2.3

matrix:
fast_finish: true
Expand All @@ -63,12 +46,9 @@ matrix:
- python: 3.6
env: TEST_TARGET=default

before_script:
before_install:
- ./ci-helpers/mysql_setup.sh
- ./ci-helpers/postgres_setup.sh
- ./ci-helpers/travis/freetds.sh

before_install:
- |
URL="http://bit.ly/miniconda"
echo ""
Expand Down