don't clear scons cache in CI

pull/1679/head
Adeeb Shihadeh 2020-06-10 17:48:51 -07:00
parent 87bbbd4100
commit cf72a4eb34
2 changed files with 11 additions and 6 deletions

View File

@ -123,12 +123,16 @@ if not prebuilt:
compile_output += r
if retry:
print("scons build failed, cleaning in")
for i in range(3, -1, -1):
print("....%d" % i)
time.sleep(1)
subprocess.check_call(["scons", "-c"], cwd=BASEDIR, env=env)
shutil.rmtree("/tmp/scons_cache")
if not os.getenv("CI"):
print("scons build failed, cleaning in")
for i in range(3, -1, -1):
print("....%d" % i)
time.sleep(1)
subprocess.check_call(["scons", "-c"], cwd=BASEDIR, env=env)
shutil.rmtree("/tmp/scons_cache")
else:
print("scons build failed after retry")
sys.exit(1)
else:
# Build failed log errors
errors = [line.decode('utf8', 'replace') for line in compile_output

View File

@ -6,6 +6,7 @@ from typing import Any
from tqdm import tqdm
from common.android import ANDROID
os.environ['CI'] = "1"
if ANDROID:
os.environ['QCOM_REPLAY'] = "1"
import selfdrive.manager as manager