forked from M-Labs/artiq
Merge branch 'master' of github.com:m-labs/artiq
This commit is contained in:
commit
776381a332
|
@ -25,7 +25,7 @@ install:
|
||||||
- pip install -e .
|
- pip install -e .
|
||||||
script:
|
script:
|
||||||
- coverage run --source=artiq setup.py test
|
- coverage run --source=artiq setup.py test
|
||||||
- make -C doc/manual html || true
|
- make -C doc/manual html
|
||||||
- cd misoc; python make.py -X ../soc -t artiq build-headers build-bios; cd ..
|
- cd misoc; python make.py -X ../soc -t artiq build-headers build-bios; cd ..
|
||||||
- make -C soc/runtime
|
- make -C soc/runtime
|
||||||
- cd misoc; python make.py -X ../soc -t artiq build-bitstream; cd ..
|
- cd misoc; python make.py -X ../soc -t artiq build-bitstream; cd ..
|
||||||
|
|
|
@ -16,6 +16,21 @@
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
from unittest.mock import MagicMock
|
||||||
|
|
||||||
|
|
||||||
|
class Mock(MagicMock):
|
||||||
|
@classmethod
|
||||||
|
def __getattr__(cls, name):
|
||||||
|
return Mock()
|
||||||
|
|
||||||
|
|
||||||
|
mock_modules = ["gbulb", "gi", "gi.repository", "cairoplot", "matplotlib"]
|
||||||
|
|
||||||
|
for module in mock_modules:
|
||||||
|
sys.modules[module] = Mock()
|
||||||
|
|
||||||
|
|
||||||
# If extensions (or modules to document with autodoc) are in another directory,
|
# If extensions (or modules to document with autodoc) are in another directory,
|
||||||
# add these directories to sys.path here. If the directory is relative to the
|
# add these directories to sys.path here. If the directory is relative to the
|
||||||
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
||||||
|
|
Loading…
Reference in New Issue