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

David Read noreply at github.com
Fri May 3 21:42:09 UTC 2019


  Branch: refs/heads/extension-template-travis
  Home:   https://github.com/ckan/ckan
  Commit: f56f5e68aaabea4e66b2a2fb0b5de887f312decd
      https://github.com/ckan/ckan/commit/f56f5e68aaabea4e66b2a2fb0b5de887f312decd
  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
    M ckan/pastertemplates/template/dev-requirements.txt_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