generated from vidsinghal/gem5
-
Notifications
You must be signed in to change notification settings - Fork 1
/
cloudbuild_presubmit.yaml
31 lines (26 loc) · 1006 Bytes
/
cloudbuild_presubmit.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
steps:
- name: 'gcr.io/cloud-builders/docker'
entrypoint: 'bash'
args:
- '-c'
- |
docker pull gcr.io/$PROJECT_ID/ubuntu-18.04_all-dependencies:latest \
|| exit 0
- name: 'gcr.io/cloud-builders/docker'
args: ['build',
'-t',
'gcr.io/$PROJECT_ID/ubuntu-18.04_all-dependencies:latest',
'--cache-from',
'gcr.io/$PROJECT_ID/ubuntu-18.04_all-dependencies:latest',
'util/dockerfiles/ubuntu-18.04_all-dependencies']
- name: 'gcr.io/$PROJECT_ID/ubuntu-18.04_all-dependencies:latest'
entrypoint: 'scons'
args: ['build/NULL/unittests.opt', '-j', '4']
- name: 'gcr.io/$PROJECT_ID/ubuntu-18.04_all-dependencies:latest'
dir: 'tests'
entrypoint: 'python'
args: ['main.py', 'run', '-j', '4', '-t', '8', '--length', 'quick']
images: ['gcr.io/$PROJECT_ID/ubuntu-18.04_all-dependencies:latest']
options:
machineType: 'N1_HIGHCPU_8'
timeout: 18000s # 5 Hours