Example #1
0
#!/usr/bin/env python
"""
Use local install for manual testing
"""

from __future__ import annotations

from devrepo import base_dir, shell

project_dir = base_dir()

shell("sudo python setup.py install")
Example #2
0
#!/usr/bin/env python
"""
Provide manual testing environmnet
"""

from devrepo import shell

shell("virtualenv --no-site-packages .env")
Example #3
0
def xxx_test_shell():
    print()
    shell("pwd; ls -las")
Example #4
0
#!/usr/bin/env python

"""
CI tox integration tests
"""

from devrepo import shell

shell(f"nspawn-hatch list")
shell(f"nspawn-hatch update image-server")
shell(f"cat /etc/systemd/system/nspawn-image-server.service")
shell(f"systemctl --no-pager status nspawn-image-server.service")

shell(f"nspawn-enter nspawn-image-server 'uname -a'")

shell(f"demo/alpine/base/build.py")
shell(f"demo/alpine/base/setup.py")
shell(f"cat /etc/systemd/system/alpine-base.service")
shell(f"systemctl --no-pager status alpine-base.service")

# TODO archux site is slow
# shell(f"demo/archux/base/build.py")
# shell(f"demo/archux/base/setup.py")
# shell(f"cat /etc/systemd/system/archux-base.service")
# shell(f"systemctl --no-pager status archux-base.service")

shell(f"demo/ubuntu/base/build.py")
shell(f"demo/ubuntu/base/setup.py")
shell(f"cat /etc/systemd/system/ubuntu-base.service")
shell(f"systemctl --no-pager status ubuntu-base.service")
Example #5
0
#!/usr/bin/env python

"""
Squash github commits starting from a point
"""

from devrepo import shell

point = "df57d41c8797052f08d3568f7b0159d285735700"
message = "develop"

shell(f"git reset --soft {point}")
shell(f"git add --all")
shell(f"git commit --message='{message}'")
shell(f"git push --force --follow-tags")
Example #6
0
#!/usr/bin/env python

"""
Use local install for manual testing
"""

from devrepo import base_dir
from devrepo import shell

project_dir = base_dir()

shell("sudo python setup.py install")
shell("sudo rm -rf build")
#!/usr/bin/env python

"""
PyPi release testing.
"""

from devrepo import shell

shell(f".env/bin/tox")
Example #8
0
def invoke_build():
    shell(f"rm -f src/main/data_pipe/*.c")
    shell(f"rm -f src/main/data_pipe/*.html")
    shell(f"python setup.py build_ext --inplace")
Example #9
0
#!/usr/bin/env python
"""
PyPi release testing.
"""

from devrepo import shell

shell(f"tox")