1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

Merge pull request #1039 from ailin-nemui/actions

Add code to support Github Actions
This commit is contained in:
ailin-nemui 2019-04-30 20:40:15 +02:00 committed by GitHub
commit d5fd789674
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 70 additions and 0 deletions

43
.github/actions.yml vendored Normal file
View File

@ -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.*

27
.github/main.workflow vendored Normal file
View File

@ -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"
}