CKAN extension exposing scripts for migration from previous ODC site to the new server.
A series of python scripts that help importing contents from previous systems into CKAN, such as Taxonomy terms and translations, map layers from geoserver, library records from NGL or contents exported from Wordpress in XML format. Also, there are a series of utility methods to do bulk operations in CKAN such as delete datasets in a group, insert initial data or change datasets type programatically.
In order to run the import scripts the dependencies specified in the requirements.txt need to be installed ( i.e. using pip)
pip install -r requirements
Tests are found on ckanext/odm_dataset/tests and can be run with nosetest
Everytime code is pushed to the repository, travis will run the tests available on /tests. In case the code has been pushed to master branch and tests pass, the _ci/deploy.sh script will be called for deploying code in CKAN's DEV instance. Analog to this, and when code from master branch has been tagged as release, travis will deploy to CKAN's PROD instance automatically
For the automatic deployment, the scripts on _ci/ are responsible of downloading the odm-automation repository, decrypting the odm_tech_rsa.enc private key file ( encrypted using Travis-ci encryption mechanism) and triggering deployment in either DEV or PROD environment.
This material is copyright (c) 2014-2015 East-West Management Institute, Inc. (EWMI).
It is open and licensed under the GNU Affero General Public License (AGPL) v3.0 whose full text may be found at: