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
2 files changed
tree: 5944bd95ea72c73e6fd271471235520c9278ad8d
  1. settings/
  2. .gitignore
  3. .pre-commit-config.yaml
  4. deploy.py
  5. README.md
  6. requirements-dev.txt
  7. requirements.txt
  8. setup.py
README.md

SmartViser deployment

Deployment script to install and configure the SmartViser solution on devices.

Prerequisite

  • Python 3.6+

Install the required dependencies in a virtual environment:

% python3 -mvenv venv
% . ./venv/bin/activate
(venv) % pip install -r requirements.txt

Installing SmartViser on a Device

Follow instructions at https://gitlab.fairphone.software/fp/wiki/wikis/fp2/m/gms/sanity#prepare-a-device

Running Scenarios

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

Development

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

Requirements

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.