forked from ibphoenix/tomsfastmath
92 lines
1.5 KiB
YAML
92 lines
1.5 KiB
YAML
---
|
|
kind: pipeline
|
|
name: build-linux
|
|
|
|
platform:
|
|
arch: amd64
|
|
|
|
#environment:
|
|
#MYCC: gcc
|
|
#SHARED: "-f makefile.shared"
|
|
|
|
imagedefs:
|
|
- &anchor_compiler_image
|
|
image: dctl-registry.dcinet:5000/suse-15.4/gcc-113
|
|
|
|
steps:
|
|
- name: build
|
|
<<: *anchor_compiler_image
|
|
volumes:
|
|
- name: tempx
|
|
path: /tmp
|
|
- name: cache
|
|
path: /tmp/cache
|
|
|
|
commands:
|
|
- export CC=gcc
|
|
- make -f makefile.shared test_standalone >test_gcc_1.txt 2>test_gcc_2.txt
|
|
- ./test >test_std.txt 2>test_err.txt"
|
|
|
|
|
|
- name: build-fail
|
|
<<: *anchor_compiler_image
|
|
environment:
|
|
SLEEP: 600
|
|
commands:
|
|
- echo "Go do some debugging - you've got ${SLEEP} seconds"
|
|
- sleep ${SLEEP}
|
|
- cat test_gcc_1.txt
|
|
- cat test_std.txt
|
|
- cat test_err.txt
|
|
|
|
when:
|
|
status:
|
|
- failure
|
|
|
|
- name: build-success
|
|
<<: *anchor_compiler_image
|
|
commands:
|
|
- cat test_gcc_2.txt
|
|
when:
|
|
status:
|
|
- success
|
|
|
|
|
|
volumes:
|
|
- name: cache
|
|
host:
|
|
path: /srv/dockerctl_icc/cache
|
|
- name: staging-icc
|
|
host:
|
|
path: /srv/dockerctl_icc/staging
|
|
- name: tempx
|
|
temp: {}
|
|
|
|
|
|
trigger:
|
|
# For now we only run on demand
|
|
event:
|
|
- custom
|
|
# Disable running pipeline a second time when we promote a successful build
|
|
exclude:
|
|
- promote
|
|
|
|
|
|
#---
|
|
#kind: pipeline
|
|
#name: build-windows
|
|
|
|
#platform:
|
|
#arch: amd64
|
|
|
|
#environment:
|
|
#MYCC: gcc" SHARED="-f makefile.shared"
|
|
|
|
#steps:
|
|
#- name: test
|
|
#image: gcc
|
|
#commands:
|
|
#- ${MYCC}" make ${SHARED} test_standalone >test_gcc_1.txt 2>test_gcc_2.txt && ./test >test_std.txt 2>test_err.txt"
|
|
|
|
...
|