[ckan-changes] [ckan/ckan] e6a04b: Overhaul CKAN extension Travis template

David Read noreply at github.com
Fri May 3 21:39:35 UTC 2019


  Branch: refs/heads/extension-template-travis
  Home:   https://github.com/ckan/ckan
  Commit: e6a04bb86b1a2973a1b9eda9a458c76682cd3345
      https://github.com/ckan/ckan/commit/e6a04bb86b1a2973a1b9eda9a458c76682cd3345
  Author: David Read <david.read at hackneyworkshop.com>
  Date:   2019-05-03 (Fri, 03 May 2019)

  Changed paths:
    M ckan/pastertemplates/template/+dot+travis.yml_tmpl
    M ckan/pastertemplates/template/bin/travis-build.bash_tmpl
    M ckan/pastertemplates/template/bin/travis-run.sh_tmpl

  Log Message:
  -----------
  Overhaul CKAN extension Travis template

* add tests for multiple CKAN versions
    * add fix for psycopg2 error with CKAN<2.8
    * add correct setuptools version for CKAN==2.7
* `--allow-all-external` option was deprecated and removed in pip 10
* SOLR's config sed command is moved, to travis-build.bash, with the other setup, and in line with ckanext-dcat
* flake8's simple checks for syntax is moved from a travis job to travis-run.sh, because it runs in 0.5s, but setting up the VM for the job takes 30-60s, so might as well just run it at the start of the test jobs. The point is to fail fast. This requires the addition of 'set -ex' in the .
* add strict flake8 linting - this is perhaps a matter of taste, but as a practice it's more popular than ever now, and it's always easiest to do it from the beginning of an extension's life.




More information about the ckan-changes mailing list