From 2ead907c3a70b913a20a048a04c194e6e6b560f6 Mon Sep 17 00:00:00 2001 From: Anthony Scemama Date: Thu, 19 May 2022 15:09:34 +0200 Subject: [PATCH] Add email --- .drone.yml | 102 +++++++++++++++++++++++++++++------------------------ 1 file changed, 55 insertions(+), 47 deletions(-) diff --git a/.drone.yml b/.drone.yml index ada9a7d..5c90723 100644 --- a/.drone.yml +++ b/.drone.yml @@ -13,6 +13,18 @@ steps: - git clone https://github.com/QuantumPackage/qp2.git --depth=10 --branch=master - bash -c "cd qp2 ; exec ./configure -i all" + - name: notify + image: drillster/drone-email + settings: + host: + from_secret: hostname + from: + from_secret: from + recipients: + from_secret: recipients + when: + status: [changed, failure] + --- kind: pipeline type: docker @@ -22,46 +34,42 @@ clone: depth: 10 steps: - - name: git pull master + - name: debug image: scemama666/qp2_configured commands: - bash -c "cd /qp2 ; git checkout master" - bash -c "cd /qp2 ; git pull" - - - name: configure debug - image: scemama666/qp2_configured - commands: + - bash -c "cd /qp2 ; ls -l ; git log" - bash -c "cd /qp2 ; exec ./configure -c ./config/gfortran_debug.cfg" - bash -c "source /qp2/quantum_package.rc ; exec qp_plugins download https://gitlab.com/scemama/qp_plugins_scemama" - bash -c "source /qp2/quantum_package.rc ; exec qp_plugins install champ" - - - name: compile debug - image: scemama666/qp2_configured - commands: - bash -c "cd /qp2 ; source quantum_package.rc ; exec ninja" - - - name: testing debug - image: scemama666/qp2_configured - commands: - bash -c "cd /qp2 ; source quantum_package.rc ; TRAVIS=1 exec qp_test -a" - - name: configure fast + - name: fast image: scemama666/qp2_configured commands: + - bash -c "cd /qp2 ; git checkout master" + - bash -c "cd /qp2 ; git pull" + - bash -c "cd /qp2 ; ls -l ; git log" - bash -c "cd /qp2 ; exec ./configure -c ./config/gfortran_avx.cfg" - - - name: compile fast - image: scemama666/qp2_configured - commands: + - bash -c "source /qp2/quantum_package.rc ; exec qp_plugins download https://gitlab.com/scemama/qp_plugins_scemama" + - bash -c "source /qp2/quantum_package.rc ; exec qp_plugins install champ" - bash -c "cd /qp2 ; source quantum_package.rc ; exec ninja" - - - name: testing - image: scemama666/qp2_configured - commands: - bash -c "cd /qp2 ; source quantum_package.rc ; TRAVIS=1 exec qp_test -a" - + - name: notify + image: drillster/drone-email + settings: + host: + from_secret: hostname + from: + from_secret: from + recipients: + from_secret: recipients + when: + status: [changed, failure] --- kind: pipeline @@ -72,39 +80,39 @@ clone: depth: 10 steps: - - name: git pull master + - name: debug image: scemama666/qp2_configured commands: - bash -c "cd /qp2 ; git checkout dev" - bash -c "cd /qp2 ; git pull" - - - name: configure debug - image: scemama666/qp2_configured - commands: + - bash -c "cd /qp2 ; ls -l ; git log" - bash -c "cd /qp2 ; exec ./configure -c ./config/gfortran_debug.cfg" - bash -c "source /qp2/quantum_package.rc ; exec qp_plugins download https://gitlab.com/scemama/qp_plugins_scemama" - bash -c "source /qp2/quantum_package.rc ; exec qp_plugins install champ" - - - name: compile debug - image: scemama666/qp2_configured - commands: - bash -c "cd /qp2 ; source quantum_package.rc ; exec ninja" - - - name: testing debug - image: scemama666/qp2_configured - commands: - bash -c "cd /qp2 ; source quantum_package.rc ; TRAVIS=1 exec qp_test -a" + - name: fast + image: scemama666/qp2_configured + commands: + - bash -c "cd /qp2 ; git checkout dev" + - bash -c "cd /qp2 ; git pull" + - bash -c "cd /qp2 ; ls -l ; git log" + - bash -c "cd /qp2 ; exec ./configure -c ./config/gfortran_avx.cfg" + - bash -c "source /qp2/quantum_package.rc ; exec qp_plugins download https://gitlab.com/scemama/qp_plugins_scemama" + - bash -c "source /qp2/quantum_package.rc ; exec qp_plugins install champ" + - bash -c "cd /qp2 ; source quantum_package.rc ; exec ninja" + - bash -c "cd /qp2 ; source quantum_package.rc ; TRAVIS=1 exec qp_test -a" -# - name: notify -# image: drillster/drone-email -# settings: -# host: -# from_secret: hostname # irsamc.ups-tlse.fr -# from: -# from_secret: from # drone@irssv7.ups-tlse.fr -# recipients: -# from_secret: recipients # scemama@irsamc.ups-tlse.fr -# when: -# status: [changed, failure] + - name: notify + image: drillster/drone-email + settings: + host: + from_secret: hostname + from: + from_secret: from + recipients: + from_secret: recipients + when: + status: [changed, failure]