Compare commits

...

23 Commits

Author SHA1 Message Date
Raul Ochoa
a5fd283f90 Test: try to avoid travis virtualenv 2016-06-17 10:15:25 +02:00
Raul Ochoa
3cb59a51f5 Activate env before installs 2016-06-17 02:36:13 +02:00
Raul Ochoa
c85f4e0742 Increase travis timeout 2016-06-17 01:54:18 +02:00
Raul Ochoa
e8deffa5c2 Test: use conda env 2016-06-17 01:31:46 +02:00
Raul Ochoa
74b8ce2f98 Install nose from conda so travis doesn't use its virtualenv one 2016-06-17 01:01:04 +02:00
Raul Ochoa
78fadc14d0 Install pip with conda 2016-06-17 00:41:48 +02:00
Raul Ochoa
1edb55a790 Test: Ignore deps from setup 2016-06-17 00:06:47 +02:00
Raul Ochoa
27d2dad3c5 Test without pip install 2016-06-16 23:26:57 +02:00
Raul Ochoa
620d341cb3 Use specific version with conda in travis, use 1.11.1 pysal version 2016-06-16 23:13:35 +02:00
Raul Ochoa
544df79320 Use sudo for make install 2016-06-16 21:39:30 +02:00
Raul Ochoa
03dd4c67a6 Install postgresql-server-dev dep 2016-06-16 20:44:52 +02:00
Raul Ochoa
49f04ba55a Remove sudo calls 2016-06-16 20:41:43 +02:00
Raul Ochoa
5a092047fc Fix conda path 2016-06-16 20:36:12 +02:00
Raul Ochoa
2bd4b73f8e Another attempt using Miniconda 2016-06-16 20:27:03 +02:00
Raul Ochoa
a920da7e5d Manually install of numpy and scipy 2016-06-16 20:08:07 +02:00
Raul Ochoa
d3fba86d6f Add dependencies to build scipy 2016-06-16 19:25:38 +02:00
Raul Ochoa
b7d2254b4a Merge branch 'develop' into travis 2016-06-16 19:21:21 +02:00
Raul Ochoa
ad5cffbf0d Merge pull request #64 from CartoDB/remove-cartodb-extension-dep
Removes cartodb-extension-dep
2016-06-16 19:19:25 +02:00
Raul Ochoa
1db938c450 Removes cartodb-extension-dep 2016-06-16 19:07:42 +02:00
Raul Ochoa
5a9051e679 Use travis for tests 2016-06-16 16:57:17 +02:00
Luis Bosque
3480a0d252 Allow passing options to pip install 2016-06-16 16:56:16 +02:00
Raul Ochoa
237aa1c581 Declare scipy as dep 2016-06-16 16:34:45 +02:00
Raul Ochoa
1e19f468eb Declare numpy dep 2016-06-16 16:23:43 +02:00
8 changed files with 40 additions and 8 deletions

35
.travis.yml Normal file
View File

@@ -0,0 +1,35 @@
sudo: true
language: c
addons:
postgresql: "9.4"
apt:
packages:
- python2.7
- python2.7-dev
- postgresql-plpython-9.4
- postgresql-server-dev-9.4
- liblapack-dev
- libatlas-dev
- gfortran
env:
- PGUSER=postgres
# From https://gist.github.com/dan-blanchard/7045057
before_install:
- wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b -p `pwd`/miniconda
- export PATH=`pwd`/miniconda/bin:$PATH
- conda update --yes conda
- conda create --yes -n condaenv python=2.7
- source activate condaenv
- conda install --yes -n condaenv pip nose
- conda install --yes -n condaenv numpy=1.11.0 scipy=0.17.1 pysal=1.11.1 scikit-learn=0.17.1
install:
- travis_wait 30 sudo make install
script: make test

View File

@@ -60,7 +60,6 @@ it can be installed directly with:
* `CREATE EXTENSION IF NOT EXISTS plpythonu;`
`CREATE EXTENSION IF NOT EXISTS postgis;`
`CREATE EXTENSION IF NOT EXISTS cartodb;`
`CREATE EXTENSION crankshaft WITH VERSION 'dev';`
Note: the development extension uses the development python virtual

View File

@@ -1,5 +1,5 @@
comment = 'CartoDB Spatial Analysis extension'
default_version = '0.0.3'
requires = 'plpythonu, postgis, cartodb'
requires = 'plpythonu, postgis'
superuser = true
schema = cdb_crankshaft

View File

@@ -1,6 +1,5 @@
-- Install dependencies
CREATE EXTENSION plpythonu;
CREATE EXTENSION postgis;
CREATE EXTENSION cartodb;
-- Install the extension
CREATE EXTENSION crankshaft VERSION 'dev';

View File

@@ -1,7 +1,6 @@
-- Install dependencies
CREATE EXTENSION plpythonu;
CREATE EXTENSION postgis;
CREATE EXTENSION cartodb;
-- Install the extension
CREATE EXTENSION crankshaft VERSION 'dev';

View File

@@ -4,7 +4,7 @@ SELECT cdb_crankshaft._cdb_random_seeds(1234);
SET ROLE test_regular_user;
-- Add to the search path the schema
SET search_path TO public,cartodb,cdb_crankshaft;
SET search_path TO public,cdb_crankshaft;
-- Exercise public functions
SELECT ppoints.code, m.quads

View File

@@ -13,5 +13,5 @@ release: ../../release/$(EXTENSION).control $(SOURCES_DATA)
cp -r ./$(PACKAGE) ../../release/python/$(EXTVERSION)/
$(SED) -i -r 's/version='"'"'[0-9]+\.[0-9]+\.[0-9]+'"'"'/version='"'"'$(EXTVERSION)'"'"'/g' ../../release/python/$(EXTVERSION)/$(PACKAGE)/setup.py
deploy:
pip install --upgrade ../../release/python/$(RELEASE_VERSION)/$(PACKAGE)
deploy:
pip install $(RUN_OPTIONS) --upgrade ../../release/python/$(RELEASE_VERSION)/$(PACKAGE)

View File

@@ -40,7 +40,7 @@ setup(
# The choice of component versions is dictated by what's
# provisioned in the production servers.
install_requires=['pysal==1.9.1', 'scikit-learn==0.17.1'],
install_requires=['numpy==1.11.0', 'scipy==0.17.1', 'pysal==1.11.1', 'scikit-learn==0.17.1'],
requires=['pysal', 'numpy', 'sklearn'],