From ad3b8df97e10ad38c685a2095fe0c77cc5dee4aa Mon Sep 17 00:00:00 2001 From: ailin-nemui Date: Wed, 27 Mar 2019 18:29:38 +0100 Subject: [PATCH 1/2] Add Github Actions support code --- .github/actions.yml | 43 +++++++++++++++++++++++++++++++++++++++++++ .github/main.workflow | 27 +++++++++++++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 .github/actions.yml create mode 100644 .github/main.workflow diff --git a/.github/actions.yml b/.github/actions.yml new file mode 100644 index 00000000..ae47fbde --- /dev/null +++ b/.github/actions.yml @@ -0,0 +1,43 @@ +before_install: + - ./autogen.sh --with-proxy=module --with-bot --with-perl=module --with-otr=module + - make dist + - CO_DIR=$(pwd) + - mkdir -p $HOME/src + - cd $HOME/src + - tar xaf $CO_DIR/irssi-*.tar.* + +install: + - cd $HOME/src/irssi-* + - ./configure --with-proxy=module --with-bot --with-perl=module --with-otr=module --prefix=$HOME/irssi-build --enable-always-build-tests + - make CFLAGS="-Wall -Werror -Werror=declaration-after-statement" + - make install + +unit_tests: + - cd $HOME/src/irssi-* + - make -C tests -sk check + +after_unit_tests: + - cd $HOME/src/irssi-* + - find -name test-suite.log -exec cat {} + + +before_script: + - cd $HOME + - mkdir irssi-test + - | + echo 'echo automated irssi launch test + ^set settings_autosave off + ^set -clear log_close_string + ^set -clear log_day_changed + ^set -clear log_open_string + ^set log_timestamp * + ^window log on' > irssi-test/startup + - echo load perl >> irssi-test/startup + - echo load proxy >> irssi-test/startup + - echo ^quit >> irssi-test/startup + +script: + - cd $HOME + - irssi-build/bin/irssi --home irssi-test | /tools/render.pl + +after_script: + - cat $HOME/irc.log.* diff --git a/.github/main.workflow b/.github/main.workflow new file mode 100644 index 00000000..0db7e7a1 --- /dev/null +++ b/.github/main.workflow @@ -0,0 +1,27 @@ +workflow "Check Irssi" { + on = "push" + resolves = [ + "script", + "unit_tests", + ] +} + +action "install" { + uses = "irssi-import/actions-irssi/check-irssi@master" + args = "before_install install" +} + +action "script" { + uses = "irssi-import/actions-irssi/check-irssi@master" + needs = ["install"] + args = "before_script script after_script" + env = { + TERM = "xterm" + } +} + +action "unit_tests" { + uses = "irssi-import/actions-irssi/check-irssi@master" + needs = ["install"] + args = "unit_tests after_unit_tests" +} From da266691bb8a3a10c239726b0fa2e4caf98fa0bf Mon Sep 17 00:00:00 2001 From: ailin-nemui Date: Wed, 24 Apr 2019 13:30:38 +0200 Subject: [PATCH 2/2] disable github workflows --- .github/main.workflow | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/main.workflow b/.github/main.workflow index 0db7e7a1..18a6088c 100644 --- a/.github/main.workflow +++ b/.github/main.workflow @@ -1,10 +1,10 @@ -workflow "Check Irssi" { - on = "push" - resolves = [ - "script", - "unit_tests", - ] -} +# workflow "Check Irssi" { +# on = "push" +# resolves = [ +# "script", +# "unit_tests", +# ] +# } action "install" { uses = "irssi-import/actions-irssi/check-irssi@master"