forked from EOxServer/eoxserver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
49 lines (49 loc) · 2.87 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
language: python
env:
- 'DJANGO="1.4.13" GDAL=1.10 DB=spatialite'
- 'DJANGO="1.5.8" GDAL=1.10 DB=spatialite'
#- DJANGO=1.6 GDAL=1.10 DB=spatialite
python:
- "2.7"
virtualenv:
system_site_packages: true
before_install:
# adding required repo for dependencies
- sudo add-apt-repository -y ppa:ubuntugis/ubuntugis-unstable
- sudo apt-get update
- sudo apt-get install aptitude
# install a lot of deps from the apt-repos
- sudo aptitude install -y gdal-bin libgdal1-dev libxml2 python-lxml python-libxml2 libproj0 libproj-dev libgeos-dev libgeos++-dev cgi-mapserver python-mapscript python-psycopg2 postgis python-gdal
# allowing sqlite to load extensions
- 'if [ "$DB" == "spatialite" ]; then wget https://pypi.python.org/packages/source/p/pysqlite/pysqlite-2.6.3.tar.gz; fi'
- 'if [ "$DB" == "spatialite" ]; then tar xzf pysqlite-2.6.3.tar.gz; fi'
- 'if [ "$DB" == "spatialite" ]; then cd pysqlite-2.6.3; fi'
- 'if [ "$DB" == "spatialite" ]; then sed -i "/define=SQLITE_OMIT_LOAD_EXTENSION/c\#define=SQLITE_OMIT_LOAD_EXTENSION" setup.cfg; fi'
- 'if [ "$DB" == "spatialite" ]; then sudo python setup.py install; fi'
- 'if [ "$DB" == "spatialite" ]; then cd -; fi'
- 'if [ "$DB" == "postgis" ]; then sudo psql postgres -tAc "CREATE USER eoxserver NOSUPERUSER CREATEDB NOCREATEROLE ENCRYPTED PASSWORD ''eoxserver'';"; fi'
- 'if [ "$DB" == "postgis" ]; then sudo -u postgres createdb eoxserver_testing; fi'
- 'if [ "$DB" == "postgis" ]; then sudo -u postgres psql eoxserver_testing -c ''create extension postgis;''; fi'
install:
# test with various Django versions
- pip install Django==$DJANGO
- django-admin.py --version
# patch Django 1.4 libgeos
- 'if [ $DJANGO == "1.4.13" ]; then find /home/travis/virtualenv/ -name libgeos.py -exec patch {} jenkins/geos-dev.patch \; ; fi'
# actually install EOxServer
- pip install --install-option="--disable-extended-reftools" .
- export XML_CATALOG_FILES="`pwd`/schemas/catalog.xml"
- cd autotest
- "sed -e 's/#binary_raster_comparison_enabled=false/binary_raster_comparison_enabled=false/' -i autotest/conf/eoxserver.conf"
- 'echo "disabled_tests=WCS20GetCoverageSubsetEPSG4326ResolutionInvalidAxisDatasetFaultTestCase,WCS20GetCoverageReferenceableDatasetGeogCRSSubsetTestCase,WCS20GetCoverageReferenceableDatasetGeogCRSSubsetExceedsExtentTestCase,WCS20GetCoverageOutputCRSotherUoMDatasetTestCase,WCS20GetCoverageJPEG2000TestCase,WCS20DescribeEOCoverageSetIncorrectSpatialSubsetFaultTestCase,WCS10DescribeCoverageMosaicTestCase,WCS10DescribeCoverageDatasetTestCase,WPS10ExecuteComplexDataTIFBase64InMemTestCase" >> autotest/conf/eoxserver.conf'
script:
- python manage.py test core -v2
- python manage.py test backends -v2
- python manage.py test coverages -v2
- python manage.py test autotest_services -v2
notifications:
irc:
channels:
- "irc.freenode.net#eoxserver"
on_success: always
on_failure: always