1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 11:42:08 +00:00

Merge pull request #1840 from aidan-fitz/aidan-lokole-install-git-commit

Add logic to install a given commit from the Lokole repository
This commit is contained in:
A Holt 2019-07-08 05:48:43 -04:00 committed by GitHub
commit 0cda31c5a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,7 +21,25 @@
extra_args: --no-cache-dir # To avoid caching issues e.g. soon after new releases hit https://pypi.org/project/opwen-email-client/
tags:
- install
when: internet_available | bool
when:
- internet_available | bool
- lokole_commit is undefined
# For development purposes -- To install Lokole from a given commit, add the
# following line to roles/lokole/defaults/main.yml:
#
# lokole_commit: <git_commit_id>
- name: pip install opwen_email_client (Lokole) from git commit {{ lokole_commit }} (for development purposes)
pip:
name: "git+https://github.com/ascoderu/opwen-webapp.git@{{ lokole_commit }}#egg=opwen_email_client"
virtualenv: "{{ lokole_venv }}"
virtualenv_command: python3 -m venv "{{ lokole_venv }}"
extra_args: --no-cache-dir # To avoid caching issues e.g. soon after new releases hit https://pypi.org/project/opwen-email-client/
tags:
- install
when:
- internet_available | bool
- lokole_commit is defined
- name: Compile translations
shell: |