Last active
February 7, 2018 14:02
-
-
Save srz-zumix/38581f1437aa4239fcb7f7b2580cb33c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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