tomsfastmath/.drone.yml

91 lines
1.6 KiB
YAML
Raw Normal View History

---
kind: pipeline
name: build-linux
platform:
arch: amd64
2023-05-13 11:05:16 +02:00
environment:
SLEEP: 600
2023-05-13 10:01:40 +02:00
imagedefs:
- &anchor_compiler_image
image: dctl-registry.dcinet:5000/suse-15.4/gcc-113
steps:
- name: build
2023-05-13 10:01:40 +02:00
<<: *anchor_compiler_image
volumes:
- name: tempx
path: /tmp
- name: cache
path: /tmp/cache
commands:
2023-05-13 10:44:50 +02:00
- export CC=gcc
2023-05-13 10:38:33 +02:00
- make -f makefile.shared test_standalone >test_gcc_1.txt 2>test_gcc_2.txt
2023-05-13 10:59:50 +02:00
- ./test >test_std.txt 2>test_err.txt
2023-05-13 10:01:40 +02:00
- name: build-fail
<<: *anchor_compiler_image
commands:
2023-05-13 11:05:16 +02:00
- echo "Go do some debugging - you've got $${SLEEP} seconds"
2023-05-13 10:54:55 +02:00
- sleep $${SLEEP}
2023-05-13 10:01:40 +02:00
- cat test_gcc_1.txt
- cat test_std.txt
- cat test_err.txt
when:
status:
- failure
- name: build-success
<<: *anchor_compiler_image
commands:
- echo "Go check where the binaries are - you've got $${SLEEP} seconds"
- sleep $${SLEEP}
2023-05-13 10:01:40 +02:00
- 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"
...