-
Notifications
You must be signed in to change notification settings - Fork 2
/
codefresh.yml
49 lines (48 loc) · 1001 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
39
40
41
42
43
44
45
46
47
48
49
version: '1.0'
stages:
- checkout
- prepare
- build
- test
steps:
main_clone:
title: Cloning main repository...
stage: checkout
type: git-clone
repo: 'testillano/json2xml'
revision: master
git: github
build_dev_image:
title: Building Dev Image
stage: prepare
type: build
image_name: 'testillano/${{CF_REPO_NAME}}-dev'
tag: 'latest'
dockerfile: ./dev/Dockerfile
create_makefiles:
title: Create Makefiles
stage: prepare
image: ${{build_dev_image}}
commands:
- cmake .
compile_my_sources:
title: Compile
stage: build
image: ${{build_dev_image}}
commands:
- make
build_test_image:
title: Building Test Image
stage: prepare
type: build
working_directory: ./ct
image_name: 'testillano/${{CF_REPO_NAME}}-ct'
tag: 'latest'
dockerfile: Dockerfile
run_my_tests:
title: Test
stage: test
image: ${{build_test_image}}
commands:
- cd ct
- pytest