Skip to content

Instantly share code, notes, and snippets.

@jarshwah
Created August 24, 2016 13:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jarshwah/5f9d49f6a1d62f5d62a479088eb5c8de to your computer and use it in GitHub Desktop.
Save jarshwah/5f9d49f6a1d62f5d62a479088eb5c8de to your computer and use it in GitHub Desktop.
- name: create aliases for executing tests on regular database backends
lineinfile:
dest: "{{ user_home}}.profile"
line: >
alias runtests{{ (10 * item.0)|round|int }}-{{ item.1 }}='PYTHONPATH=/home/vagrant/djangodata/
tox -c /django/tox.ini -e py{{ (10 * item.0)|round|int }}{{ ("-" + item.1)|replace("-sqlite3", "") }} --
--settings=test_{{ item.1 }}'
with_nested:
- '{{ python_versions }}'
- '{{ databases }}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment