-
Notifications
You must be signed in to change notification settings - Fork 2
/
codefresh.yml
38 lines (34 loc) · 1018 Bytes
/
codefresh.yml
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
# Copyright 2020 (c) Cognizant Digital Business, Evolutionary AI. All rights reserved. Issued under the Apache 2.0 License.
version: '1.0'
steps:
start_clean:
title: Clean up CodeFresh volume
# Images come from hierarchy at: https://github.com/docker-library/python
image: python:3.6-slim
commands:
- rm -rf '${{CF_REPO_NAME}}'
clone_main_repo:
type: git-clone
title: "Clone repo"
repo: leaf-ai/covid-xprize
revision: '${{CF_REVISION}}'
git: github
covid-prize-build:
title: Build covid-xprize Docker image
image_name: intermediate
type: build
dockerfile: ./Dockerfile
working_directory: ${{CF_REPO_NAME}}
tag: ${{CF_REVISION}}
tests:
title: Run unit tests
image: ${{covid-prize-build}}
description: Run unit tests (nosetests)
working_directory: ${{CF_REPO_NAME}}
commands:
- nosetests -v
end_clean:
title: Clean up CodeFresh volume
image: python:3.6-slim
commands:
- rm -rf '${{CF_REPO_NAME}}'