forked from EOxServer/eoxserver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
62 lines (62 loc) · 3.17 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
50
51
52
53
54
55
56
57
58
59
60
61
62
language: python
env:
- DJANGO=">=1.4,<1.5" GDAL=1.10 DB=spatialite
- DJANGO=">=1.5,<1.6" GDAL=1.10 DB=spatialite
- DJANGO=">=1.6,<1.7" GDAL=1.10 DB=spatialite
- DJANGO=">=1.7,<1.8" GDAL=1.10 DB=spatialite
- DJANGO=">=1.8,<1.9" GDAL=1.10 DB=spatialite
python:
- '2.7'
services:
- postgres
virtualenv:
system_site_packages: true
before_install:
- sudo add-apt-repository -y ppa:ubuntugis/ubuntugis-unstable
- sudo apt-get install aptitude
- sudo aptitude install -y gdal-bin libxml2 python-lxml python-libxml2
libproj0 cgi-mapserver python-mapscript python-psycopg2 python-gdal
- 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:
- pip install "django${DJANGO}"
- django-admin.py --version
- pip install .
- 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,WCS11GetCoverageBBoxFaultTestCase"
>> autotest/conf/eoxserver.conf
script:
- python -m eoxserver.services.ows.wps.test_data_types -v
- python -m eoxserver.services.ows.wps.test_allowed_values -v
- python manage.py test --pythonpath=../eoxserver/ core -v2
- python manage.py test --pythonpath=../eoxserver/ backends -v2
- python manage.py test --pythonpath=../eoxserver/ services -v2
- python manage.py test --pythonpath=../eoxserver/resources coverages -v2
- python manage.py test --pythonpath=../eoxserver/resources processes -v2
- python manage.py test autotest_services -v2
- python manage.py test autotest_coverages -v2
after_failure:
- for file in `ls autotest/responses/*` ; do diff autotest/expected/`basename $file`
$file ; done
notifications:
irc:
channels:
- irc.freenode.net#eoxserver
on_success: always
on_failure: always
slack:
secure: GPclHjLrLU2BsOS0OOHHm5vQp/GWk2sjCrHpqOVutakGbYMMRao45MHqajim+SypZcva8npIKGAHKTwny3vkvbHUJ7vpjtvRFEISLpvKKQxnq7FXJSc6hkvj+JTAaB+UpOZYyQXtchcLMizD2mST862r8gEKMo7UkbS1VOSjEm0=