Esempio n. 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")
Esempio n. 2
0
#!/usr/bin/env python
"""
Provide manual testing environmnet
"""

from devrepo import shell

shell("virtualenv --no-site-packages .env")
Esempio n. 3
0
def xxx_test_shell():
    print()
    shell("pwd; ls -las")
Esempio n. 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")
Esempio n. 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")
Esempio n. 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")
Esempio n. 7
0
#!/usr/bin/env python

"""
PyPi release testing.
"""

from devrepo import shell

shell(f".env/bin/tox")
Esempio n. 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")
Esempio n. 9
0
#!/usr/bin/env python
"""
PyPi release testing.
"""

from devrepo import shell

shell(f"tox")