diff --git a/.drone.yml b/.drone.yml index b603338..6756cab 100644 --- a/.drone.yml +++ b/.drone.yml @@ -9,11 +9,63 @@ environment: MYCC: "gcc" SHARED: "-f makefile.shared" +imagedefs: + - &anchor_compiler_image + image: dctl-registry.dcinet:5000/suse-15.4/gcc-113 + steps: - name: build - image: gcc + <<: *anchor_compiler_image + volumes: + - name: tempx + path: /tmp + - name: cache + path: /tmp/cache + commands: - - ${MYCC}" make ${SHARED} test_standalone >test_gcc_1.txt 2>test_gcc_2.txt && ./test >test_std.txt 2>test_err.txt" + - ${MYCC}" make ${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 + commands: + - 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