First attempt with a .travis.yml file

This commit is contained in:
Rafa de la Torre 2016-08-08 16:26:35 +02:00
parent 966dd4268a
commit c48f9b67b7

43
.travis.yml Normal file
View File

@ -0,0 +1,43 @@
language: python
before_install:
- sudo apt-get -y install make
- 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
- 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
# Install postgres db and build deps
- sudo apt-get -y install \
postgresql-9.5 \
postgresql-server-dev-9.5 \
postgresql-plpython-9.5 \
postgresql-9.5-postgis-2.2 \
postgresql-9.5-postgis-scripts
# configure it to accept local connections from postgres
- echo -e "# TYPE DATABASE USER ADDRESS METHOD
local all postgres trust
local all all trust
host all all 127.0.0.1/32 trust" \
| sudo tee /etc/postgresql/9.5/main/pg_hba.conf
- sudo service postgresql reload
script:
- sudo make install
- make test