forked from kubeflow/fairing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cloudbuild.yaml
27 lines (24 loc) · 864 Bytes
/
cloudbuild.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
steps:
# Pull cached image from previous build
- name: 'gcr.io/cloud-builders/docker'
entrypoint: 'bash'
args: ['-c', 'docker pull gcr.io/$PROJECT_ID/fairing-test:latest || exit 0']
# Build test image
- name: 'gcr.io/cloud-builders/docker'
args: [
'build',
'-f', 'Dockerfile.test',
'-t', 'gcr.io/$PROJECT_ID/fairing-test:latest',
'--cache-from', 'gcr.io/$PROJECT_ID/fairing-test:latest',
'.'
]
# Authenticate with Kubeflow cluster and run tests
- name: 'gcr.io/$PROJECT_ID/fairing-test:latest'
entrypoint: 'bash'
args:
- '-c'
- 'gcloud container clusters get-credentials kubeflow-ci-fairing --zone us-central1-a && pytest -n 8 -v --durations=10 --cov=fairing --ignore=tests/integration/azure/ tests/'
images: ['gcr.io/$PROJECT_ID/fairing-test:latest']
timeout: 3600s
options:
machineType: 'N1_HIGHCPU_8'