2016-08-08 23:11:16 +08:00
|
|
|
language: c
|
2016-08-08 22:26:35 +08:00
|
|
|
|
2016-08-11 00:12:43 +08:00
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- PAGER=cat
|
|
|
|
|
2016-08-08 22:26:35 +08:00
|
|
|
before_install:
|
2016-08-09 21:42:01 +08:00
|
|
|
- ./check-up-to-date-with-master.sh
|
2016-08-08 22:26:35 +08:00
|
|
|
- sudo apt-get -y install python-pip
|
|
|
|
|
|
|
|
- sudo apt-get -y install python-software-properties
|
|
|
|
- sudo add-apt-repository -y ppa:cartodb/sci
|
|
|
|
- sudo add-apt-repository -y ppa:cartodb/postgresql-9.5
|
|
|
|
- sudo add-apt-repository -y ppa:cartodb/gis
|
2016-08-09 17:50:35 +08:00
|
|
|
- sudo add-apt-repository -y ppa:cartodb/gis-testing
|
2016-08-08 22:26:35 +08:00
|
|
|
- sudo apt-get update
|
|
|
|
|
|
|
|
- sudo apt-get -y install python-joblib=0.8.3-1-cdb1
|
|
|
|
- sudo apt-get -y install python-numpy=1:1.6.1-6ubuntu1
|
|
|
|
|
|
|
|
# Install pysal
|
|
|
|
- sudo pip install -I pysal==1.11.2
|
|
|
|
|
|
|
|
- sudo apt-get -y install python-scipy=0.14.0-2-cdb6
|
|
|
|
- sudo apt-get -y --no-install-recommends install python-sklearn-lib=0.14.1-3-cdb2
|
|
|
|
- sudo apt-get -y --no-install-recommends install python-sklearn=0.14.1-3-cdb2
|
|
|
|
- sudo apt-get -y --no-install-recommends install python-scikits-learn=0.14.1-3-cdb2
|
|
|
|
|
2016-08-09 01:12:55 +08:00
|
|
|
# Force instalation of libgeos-3.5.0 (presumably needed because of existing version of postgis)
|
|
|
|
- sudo apt-get -y install libgeos-3.5.0=3.5.0-1cdb2
|
|
|
|
|
2016-08-08 22:26:35 +08:00
|
|
|
# Install postgres db and build deps
|
2016-08-08 23:53:07 +08:00
|
|
|
- sudo /etc/init.d/postgresql stop # stop travis default instance
|
2016-08-09 18:05:49 +08:00
|
|
|
- sudo apt-get -y remove --purge postgresql-9.1
|
|
|
|
- sudo apt-get -y remove --purge postgresql-9.2
|
|
|
|
- sudo apt-get -y remove --purge postgresql-9.3
|
|
|
|
- sudo apt-get -y remove --purge postgresql-9.4
|
|
|
|
- sudo apt-get -y remove --purge postgis
|
|
|
|
- sudo apt-get -y autoremove
|
|
|
|
|
2016-11-21 23:14:48 +08:00
|
|
|
- sudo apt-get -y install postgresql-9.5=9.5.2-3cdb1
|
2016-11-22 00:25:08 +08:00
|
|
|
- sudo apt-get -y install postgresql-server-dev-9.5=9.5.2-3cdb1
|
|
|
|
- sudo apt-get -y install postgresql-plpython-9.5=9.5.2-3cdb1
|
2016-08-09 17:36:51 +08:00
|
|
|
- sudo apt-get -y install postgresql-9.5-postgis-scripts=2.2.2.0-cdb2
|
2016-09-30 17:31:57 +08:00
|
|
|
- sudo apt-get -y install postgresql-9.5-postgis-2.2=2.2.2.0-cdb2
|
2016-08-08 22:26:35 +08:00
|
|
|
|
|
|
|
# configure it to accept local connections from postgres
|
2016-08-08 22:34:01 +08:00
|
|
|
- echo -e "# TYPE DATABASE USER ADDRESS METHOD \nlocal all postgres trust\nlocal all all trust\nhost all all 127.0.0.1/32 trust" \
|
|
|
|
| sudo tee /etc/postgresql/9.5/main/pg_hba.conf
|
2016-08-09 00:09:51 +08:00
|
|
|
- sudo /etc/init.d/postgresql restart 9.5
|
2016-08-08 22:26:35 +08:00
|
|
|
|
2016-08-09 21:44:36 +08:00
|
|
|
install:
|
2016-08-08 22:26:35 +08:00
|
|
|
- sudo make install
|
2016-08-09 21:44:36 +08:00
|
|
|
|
|
|
|
script:
|
2016-08-09 21:45:45 +08:00
|
|
|
- make test || { cat src/pg/test/regression.diffs; false; }
|
2016-08-10 21:48:45 +08:00
|
|
|
- ./check-compatibility.sh
|