python pip install fabricate python import fabricate python def build(): def test(): def deploy(): python def main(): fabricate.rules( target="project", depends=["source_file_1.cpp", "source_file_2.cpp"], clean=True ) python fabricate.main() python import fabricate def build(): fabricate.run("g++ -o executable source_file.cpp") def test(): fabricate.run("./executable --test") def deploy(): fabricate.run("scp executable user@server:path/to/deploy") def main(): fabricate.rules( target="project", depends=["source_file.cpp"], clean=True ) fabricate.main()


上一篇:
下一篇:
切换中文