diff --git a/.gitignore b/.gitignore index afa464a..05d7073 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ osm2ma/.idea *.sw[po] *.pyc +*.coverage +*.py,cover diff --git a/appveyor.yml b/appveyor.yml index 3e17e0a..c391f74 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,12 +1,17 @@ version: 1.9.alpha.{build} +environment: + os: unstable + init: - echo %path% - path=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Mercurial;C:\Program Files\7-Zip;C:\Tools\xUnit;C:\Tools\NUnit\bin;C:\Tools\NuGet;C:\Python27;C:\Tools\WebDriver;C:\Tools\MSpec;C:\Program Files\Java\jdk1.7.0\bin;C:\ProgramData\chocolatey\bin;C:\Tools\GitVersion;C:\Program Files (x86)\Git\cmd;C:\Program Files (x86)\Git\bin;C:\Program Files (x86)\CollabNet\Subversion Client;C:\Users\appveyor\AppData\Roaming\npm;C:\Ruby193\bin;C:\Program Files (x86)\CMake\bin;C:\go\bin;C:\Chocolatey\bin;C:\Program Files\AppVeyor\BuildAgent - mkdir %systemdrive%\OSGeo4w - cd %systemdrive%\OSGeo4w - ps: (new-object net.webclient).DownloadFile('http://download.osgeo.org/osgeo4w/osgeo4w-setup-x86_64.exe', 'osgeo4w-setup-x86_64.exe') - - osgeo4w-setup-x86_64.exe --quiet-mode --upgrade-also --delete-orphans --no-desktop --advanced --root %systemdrive%\OSGeo4w --packages msvcrt setup shell avce00 zlib iconv libxml2 cairo openssl curl expat fcgi ffmpeg fftw freexl fribidi libpng libjpeg libjpeg12 libtiff libgeotiff proj-hpgn proj-datumgrid proj geos libmysql sqlite3 hdf5 netcdf libpq xerces-c-vc10 hdf4 ogdi openjpeg spatialite gdal python-core python-numpy gdal-python gdal-autotest gdal-filegdb pdcurses msys python-win32 wxpython python-pil pyopengl gs grass gsl-libs libspatialindex mapserver mapscript-python msinttypes opencv psycopg2 qt4-libs pyqt4 pyspatialite six python-dateutil python-devel python-help sip qscintilla python-qscintilla python-shapely python-simplejson python-tcltk python-test python-tools python-xlrd python-xlwt qwt5-libs-qt4 qgis-common qgis qgis-grass-plugin qgis-server setuptools --site http://download.osgeo.org/osgeo4w + - osgeo4w-setup-x86_64.exe --quiet-mode --upgrade-also --delete-orphans --no-desktop --advanced --root %systemdrive%\OSGeo4w --packages msvcrt,setup,shell,avce00,zlib,iconv,libxml2,cairo,openssl,curl,expat,fcgi,ffmpeg,fftw,freexl,fribidi,libpng,libjpeg,libjpeg12,libtiff,libgeotiff,proj-hpgn,proj-datumgrid,proj,geos,libmysql,sqlite3,hdf5,netcdf,libpq,xerces-c-vc10,hdf4,ogdi,openjpeg,spatialite,gdal,python-core,python-numpy,gdal-python,gdal-autotest,gdal-filegdb,pdcurses,msys,python-win32,wxpython,python-pil,pyopengl,gs,gsl-libs,libspatialindex,mapserver,mapscript-python,msinttypes,opencv,psycopg2,qt4-libs,pyqt4,pyspatialite,six,python-dateutil,python-devel,python-help,sip,qscintilla,python-qscintilla,python-shapely,python-simplejson,python-tcltk,python-test,python-tools,python-xlrd,python-xlwt,qwt5-libs-qt4,setuptools --site http://download.osgeo.org/osgeo4w + - ps: Restart-Computer -Force # here the server goes restarting + - ps: Start-Sleep -s 10 - cd %APPVEYOR_BUILD_FOLDER% build: off @@ -15,8 +20,12 @@ test_script: - cd osm2ma - echo %path% - '%systemdrive%\OSGeo4w\OSGeo4W.bat echo %path%' + - '%systemdrive%\OSGeo4w\OSGeo4W.bat o-help' + - '%systemdrive%\OSGeo4w\OSGeo4W.bat where gdalinfo' + - '%systemdrive%\OSGeo4w\OSGeo4W.bat gdalinfo --version' - '%systemdrive%\OSGeo4w\OSGeo4W.bat python tests.py' - - '%systemdrive%\OSGeo4w\OSGeo4W.bat python osm2mapaction.py' + - '%systemdrive%\OSGeo4w\OSGeo4W.bat python gdal_on_appveyour_test.py' + - '%systemdrive%\OSGeo4w\OSGeo4W.bat python -m unittest discover -s osm2ma' branches: only: - - feature/excel-parse-tests \ No newline at end of file + - test/appvey-config diff --git a/disabled-appveyor.yml b/disabled-appveyor.yml new file mode 100644 index 0000000..5535af3 --- /dev/null +++ b/disabled-appveyor.yml @@ -0,0 +1,25 @@ +version: 1.9.alpha.{build} + +init: + - echo %path% + - path=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Mercurial;C:\Program Files\7-Zip;C:\Tools\xUnit;C:\Tools\NUnit\bin;C:\Tools\NuGet;C:\Python27;C:\Tools\WebDriver;C:\Tools\MSpec;C:\Program Files\Java\jdk1.7.0\bin;C:\ProgramData\chocolatey\bin;C:\Tools\GitVersion;C:\Program Files (x86)\Git\cmd;C:\Program Files (x86)\Git\bin;C:\Program Files (x86)\CollabNet\Subversion Client;C:\Users\appveyor\AppData\Roaming\npm;C:\Ruby193\bin;C:\Program Files (x86)\CMake\bin;C:\go\bin;C:\Chocolatey\bin;C:\Program Files\AppVeyor\BuildAgent + - mkdir %systemdrive%\OSGeo4w + - cd %systemdrive%\OSGeo4w + - ps: (new-object net.webclient).DownloadFile('http://download.osgeo.org/osgeo4w/osgeo4w-setup-x86_64.exe', 'osgeo4w-setup-x86_64.exe') + - osgeo4w-setup-x86_64.exe --quiet-mode --upgrade-also --delete-orphans --no-desktop --advanced --root %systemdrive%\OSGeo4w --packages msvcrt setup shell avce00 zlib iconv libxml2 cairo openssl curl expat fcgi ffmpeg fftw freexl fribidi libpng libjpeg libjpeg12 libtiff libgeotiff proj-hpgn proj-datumgrid proj geos libmysql sqlite3 hdf5 netcdf libpq xerces-c-vc10 hdf4 ogdi openjpeg spatialite gdal python-core python-numpy gdal-python gdal-autotest gdal-filegdb pdcurses msys python-win32 wxpython python-pil pyopengl gs grass gsl-libs libspatialindex mapserver mapscript-python msinttypes opencv psycopg2 qt4-libs pyqt4 pyspatialite six python-dateutil python-devel python-help sip qscintilla python-qscintilla python-shapely python-simplejson python-tcltk python-test python-tools python-xlrd python-xlwt qwt5-libs-qt4 qgis-common qgis qgis-grass-plugin qgis-server setuptools --site http://download.osgeo.org/osgeo4w + - ps: Restart-Computer -Force # here the server goes restarting + - ps: Start-Sleep -s 10 + - cd %APPVEYOR_BUILD_FOLDER% + +build: off + +test_script: + - cd osm2ma + - echo %path% + - '%systemdrive%\OSGeo4w\OSGeo4W.bat echo %path%' + - '%systemdrive%\OSGeo4w\OSGeo4W.bat python gdal_on_appveyour_test.py' + - '%systemdrive%\OSGeo4w\OSGeo4W.bat python tests.py' + - '%systemdrive%\OSGeo4w\OSGeo4W.bat python osm2mapaction.py' +branches: + only: + - test/appvey-config \ No newline at end of file