You've already forked OpenUxAS-SoI
mirror of
https://github.com/AdaCore/OpenUxAS-SoI.git
synced 2026-02-12 13:04:49 -08:00
16 lines
369 B
Python
16 lines
369 B
Python
#! /usr/bin/env python3
|
|
import os
|
|
from subprocess import call
|
|
|
|
def callWithShell(cmd):
|
|
call(cmd, shell=True)
|
|
|
|
# 1 - change to the volume with OpenUxAS code :
|
|
os.chdir("/tmp_build")
|
|
|
|
# if `build` exists, then just run Ninja
|
|
if(os.path.isdir("build")):
|
|
callWithShell("meson build --buildtype=release")
|
|
|
|
# 3 - compile the code
|
|
callWithShell("ninja -C build test") |