commit | 275978cc9425ae4b6d841c926b4bb61b57be8e3a | [log] [tgz] |
---|---|---|
author | Borjan Tchakaloff <borjan@steadymonkey.eu> | Fri Feb 07 14:01:36 2020 +0100 |
committer | Borjan Tchakaloff <borjan@steadymonkey.eu> | Fri Feb 07 18:32:55 2020 +0100 |
tree | 5944bd95ea72c73e6fd271471235520c9278ad8d | |
parent | 7283b552331fb88ee024e4c04e2b99f585fb6042 [diff] |
Configure the viSer app through the suite deployment Use the SmartViser suite deployment to configure the viSer app. The credentials are input in the viSer app as soon as it is installed, allowing the app to be accessible right away. The viSer app settings are now loaded through a settings file (dumped from the app manually) instead of going through hoops via the UI. Issue: INFRA-226 Change-Id: I8d1e602dc4928c2f3770720c74db3f219fde6e88
Deployment script to install and configure the SmartViser solution on devices.
Install the required dependencies in a virtual environment:
% python3 -mvenv venv % . ./venv/bin/activate (venv) % pip install -r requirements.txt
Follow instructions at https://gitlab.fairphone.software/fp/wiki/wikis/fp2/m/gms/sanity#prepare-a-device
Follow (and potentially adapt) instructions on how to run sanity check at https://gitlab.fairphone.software/fp/wiki/wikis/fp2/m/gms/sanity#run-the-sanity-check
Install the pre-commit
hook to setup the toolchain:
(venv) % pip install -r requirements-dev.txt (venv) % pre-commit install
The toolchain can be run independently of the hook. On the staged changes only:
(venv) % pre-commit run
Or on all files:
(venv) % pre-commit run --all-files
To keep things simple, and avoid installing extra software, this repository relies on standard Python tools (pip
and the venv
module).
The abstract dependencies are specified in setup.py
while the actual dependencies (i.e. the required and transitive dependencies) are pinned in dedicated requirements files. This ensures reproducibility.