Make sure cibuild calls all necessary scripts.
This commit is contained in:
parent
833190e8fa
commit
c87956ef4f
1 changed files with 19 additions and 2 deletions
|
@ -2,7 +2,24 @@
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import subprocess
|
import subprocess
|
||||||
|
import sys
|
||||||
|
|
||||||
|
|
||||||
test = os.path.join(os.path.dirname(__file__), 'test.py')
|
SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
|
||||||
subprocess.check_call([test, '--ci'])
|
|
||||||
|
|
||||||
|
def main():
|
||||||
|
run_script('bootstrap.py')
|
||||||
|
run_script('cpplint.py')
|
||||||
|
run_script('build.py')
|
||||||
|
run_script('test.py', ['--ci'])
|
||||||
|
run_script('create-dist.py')
|
||||||
|
|
||||||
|
|
||||||
|
def run_script(script, args=[]):
|
||||||
|
script = os.path.join(SOURCE_ROOT, 'script', script)
|
||||||
|
subprocess.check_call([sys.executable, script] + args)
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
sys.exit(main())
|
||||||
|
|
Loading…
Reference in a new issue