1
mirror of https://github.com/home-assistant/core synced 2024-10-01 05:30:36 +02:00
Commit Graph

14 Commits

Author SHA1 Message Date
Ville Skyttä
cfd600d72e
script/test: fix tox env (#25620) 2019-08-01 08:45:58 +03:00
Julius Mittenzwei
16cb7388ee Removing asyncio.coroutine syntax from HASS core (#12509)
* changed asyncio.coroutine syntax to new async def/await

* removed py34 from tox environment

* reverted some changes within entity.py

* -

* reverted changes within bootstrap.py

* reverted changes within discovery.py

* switched decorators

* Reverted change within aiohttp_client.py

* reverted change within logging.py

* switched decorators

* Await lock properly

* removed asyncio.coroutine from test
2018-02-25 03:38:46 -08:00
Michaël Arnauts
cb85128304 Speeds up lint and test in docker by keeping the cache between invocations. (#5177)
* Add a volume to store the tox cache on the host. This gives quite some speed boost when running lint_docker and test_docker.

* Only map .tox directory for cache.
2017-01-05 09:45:14 +01:00
Michaël Arnauts
c864ea60c9 Improve development workflow in docker (#5079)
* Allow bower install of frontend components as root. Needed for frontend development in docker since everything runs as root in the docker image.

* Improve development workflow in docker

* Use LANG=C.UTF-8 in tox. Fixes installation of libraries with UTF-8 in it's readme.

* Install mysqlclient psycopg2 uvloop after requirements_all.txt again, but with a --no-cache-dir this time. Allows bootstrap_frontend to be executed in a different path like the other scripts.
2017-01-02 22:04:09 +01:00
Sean Dague
97c0f5bb5a convert testing infrastructure to tox
This converts the testing infrastructure to tox for both locally
testing and travis. This is nearly equivalent to the previous testing
with the only exception that linting fails with the first tool to fail
and won't process all of them.

Slightly tricky thing is that tox resets *all* of the environment for
it's subprocess runs by default. A couple of the dependencies we have
will not install in non UTF8 locales: temper-python & XBee.
2016-02-14 13:04:42 -05:00
Fabian Affolter
058315720f Fix typo 2016-02-10 23:59:34 +01:00
Sean Dague
efcba8f1ca add pytest-timeout to test runs
This adds a default 30 second timeout on every test method so that
deadlocks or broken threads are move obvious in travis. It also passes
-v by default to make things a little more verbose on where things
fail when they are failing.
2016-02-03 15:13:30 -05:00
Paulus Schoutsen
7dc1499386 Make CI erros more prominent 2016-01-02 14:43:03 -08:00
Paulus Schoutsen
9dca22aa27 Only lint on Python 3.4 2015-12-18 00:14:31 -08:00
Paulus Schoutsen
0d09e2e1df Attempt to fix CI scripts 2015-09-20 11:00:35 -07:00
Paulus Schoutsen
ec1d5e617e Fix CI 2015-09-19 12:29:23 -07:00
Paulus Schoutsen
4b0c416844 Use pytest for running tests 2015-09-17 09:08:58 -07:00
Paulus Schoutsen
bf14067eb0 Add exec + doc header 2015-09-17 00:38:52 -07:00
Paulus Schoutsen
8c77418b6a First pass for scripts to rule them all 2015-09-17 00:35:26 -07:00