-
Notifications
You must be signed in to change notification settings - Fork 6
/
cloudbuild.yaml
51 lines (43 loc) · 1.5 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
steps:
- id: maybe-cache-image
name: 'gcr.io/cloud-builders/docker'
entrypoint: 'bash'
args:
- '-c'
- |
docker pull gcr.io/$PROJECT_ID/tape4nmt-builder:latest || exit 0
- id: build-builder
name: 'gcr.io/cloud-builders/docker'
args: ['build',
'-t', 'gcr.io/$PROJECT_ID/tape4nmt-builder:latest',
'-f', 'Dockerfile',
'--cache-from', 'gcr.io/$PROJECT_ID/tape4nmt-builder:latest',
'.']
- id: test-dryrun-fairseq
name: 'gcr.io/$PROJECT_ID/tape4nmt-builder'
args: ['ducttape', 'fairseq.tape', '-C', 'fairseq.tconf', 'list']
- id: test-dryrun-sockeye
name: 'gcr.io/$PROJECT_ID/tape4nmt-builder'
args: ['ducttape', 'sockeye.tape', '-C', 'sockeye.tconf', 'list']
- id: test-dryrun-onmt
name: 'gcr.io/$PROJECT_ID/tape4nmt-builder'
args: ['ducttape', 'onmt.tape', '-C', 'onmt.tconf', 'list']
- id: test-conda
name: 'gcr.io/$PROJECT_ID/tape4nmt-builder'
args: ['test/test_conda.sh']
- id: test-venv
name: 'gcr.io/$PROJECT_ID/tape4nmt-builder'
args: ['test/test_venv.sh']
# - id: test-preproc
# name: 'gcr.io/$PROJECT_ID/tape4nmt-builder'
# args: ['ducttape', 'test/test.tape', '-C', 'preproc.tconf', '-y']
#
# - id: test-fairseq
# name: 'gcr.io/$PROJECT_ID/tape4nmt-builder'
# args: ['ducttape', 'test/test.tape', '-C', 'fairseq.tconf', '-y']
#
# - id: test-sockeye
# name: 'gcr.io/$PROJECT_ID/tape4nmt-builder'
# args: ['ducttape', 'test/test.tape', '-C', 'conda.tconf', '-y']
timeout: 7200s
images: ['gcr.io/$PROJECT_ID/tape4nmt-builder:latest']