Ubuntu developer tools center container for medium tests.
504
Ubuntu Developer Tools Center is a project to enable quick and easy setup of common developers needs on Ubuntu.
As a first step, it's focusing on installing a full-fledged android developer environment on latest Ubuntu LTS (14.04).
/!\ WIP, not ready for consumption yet
To run the tool:
$ ./udtc
You can of course use --help to get more information and change the verbosity of the output with -v, -vv.
Note that this project is using python3 and requires at least python 3.3. All commands are using the python 3 version. See later on how to install the corresponding virtualenv.
To enable shell completion on bash or zsh, just run:
$ . enable_completion
Multiple logging profiles are available in confs/ to be able to have different traces of your execution (useful when debugging in particular). For instance, you will find:
Under normal circumstances, we expect error.log to remain empty../
To load one of those logging profiles:
$ LOG_CFG=confs/debug.logcfg bin/udtc
It's possible for anyone to have local frameworks for either development purpose or for special local or team use-case.
Any file should eventually contain a category or frameworks like the ones in udtc/frameworks/*.
If categories name are duplicated only one will be loaded. Ubuntu Developer Tools Center will first load the one controlled by the environment variable, then in home based directory, and finally, the system one. Note that duplicate filenames aren't encouraged, but supported.
We are running pep8 relaxing in .pep8 the max line length to 120. env/ is excluded from the pep8 check as well.
Running this test, in particular:
$ ./runtests pep8
will run those pep8 checks on the code.
You can also run the pep8 tool directly from the project directory:
$ pep8 .
There are four kinds of tests that can be combined in runtests:
To run all those tests, with coverage report (like in Travis CI):
$ ./runtests
You can use --no-config to disable the coverage report selection.
By default, runtests will not display any debug output of the passing tests like in nose. However, if you select only some tests to run manually, runtests will then switch to display full debug log,
$ ./runtests tests/small/test_tools.py:TestConfigHandler
You can use --no-config to disable the debug output selection.
runtests is a small nose wrapper used to ease the run of tests. By default runtests without any argument or with "all" will run all available tests on the projects, using the production nose config. You can also run only some test types if wanted:
$ ./runtests small medium
This will only run small and medium tests, with all nose defaults (no profile is selected).
Finally, you can run, as seen in the previous paragraph, a selection of one or more tests:
$ ./runtests tests/small/test_tools.py:TestConfigHandler
This enables the debug profile by default, to display all outputs and logging information (in debug level).
You can activate/disable/change any of those default selected configurations with --config/--coverage/--debug/--no-config (see runtests --help for more information)
Some nose configurations are available in confs/. You will find:
runtests is compatible with showing the python warnings:
$ PYTHONWARNINGS=d ./runtests
For an easier development workflow, we encourage the use of virtualenv to test and iterate on the project in contrast to installing all requirements on your machine. In the project root directory (env/ is already in .gitignore and excluded from pep8 checking):
$ virtualenv --python=python3 --system-site-packages env
$ sudo apt-get install -qq apt apt-utils libapt-pkg-dev # those are the requirements to compile python-apt
$ sudo apt-get install -qq python3-progressbar python3-gi python3-argcomplete
$ env/bin/pip install -r requirements.txt
$ source env/bin/activate
$ bin/udtc
Refresh .pot files:
$ ./setup.py update_pot
Content type
Image
Digest
sha256:4ad06b176…
Size
158 MB
Last updated
about 11 years ago
docker pull didrocks/docker-udtc