don't clear scons cache in CI

old-commit-hash: cf72a4eb34
commatwo_master
Adeeb Shihadeh 5 years ago
parent 6e6c165e7f
commit d231b3a7ec
  1. 16
      selfdrive/manager.py
  2. 1
      selfdrive/test/process_replay/camera_replay.py

@ -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

@ -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

Loading…
Cancel
Save