Skip to content

Instantly share code, notes, and snippets.

@srz-zumix
Last active February 7, 2018 14:02
Show Gist options
  • Select an option

  • Save srz-zumix/38581f1437aa4239fcb7f7b2580cb33c to your computer and use it in GitHub Desktop.

Select an option

Save srz-zumix/38581f1437aa4239fcb7f7b2580cb33c to your computer and use it in GitHub Desktop.
# codefresh.yml (Use YAML from URL)
version: '1.0'
steps:
BuildingDockerImage:
title: Building Docker Image
type: build
image_name: srzzumix/iutest
dockerfile: tools/docker/codefresh/Dockerfile
RunningUnitTests:
title: Running Unit Tests
image: '${{BuildingDockerImage}}'
working_directory: IMAGE_WORK_DIR
entry_point:
- /bin/sh
- /codefresh/volume/cf-generated/unit_test_script
create_file:
path: /codefresh/volume/cf-generated
name: unit_test_script
content: >-
cat /proc/cpuinfo
g++ --version
# echo | gcc -E -Wp,-v -
cd test
make -j 4 ${MAKE_OPTION} && make test
on_success:
metadata:
set:
- '${{BuildingDockerImage.imageId}}':
- CF_QUALITY: true
on_fail:
metadata:
set:
- '${{BuildingDockerImage.imageId}}':
- CF_QUALITY: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment