diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000000..9cd37eb168 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,22 @@ +pipeline { + agent { label 'PACKAGES_x86_64_linux_redhat_7' } + environment { + REPOS = "core" + } + stages { + stage('Clean workspace') { + steps { + sh 'for r in $REPOS; do rm -rf "$(basename "$r")"; done' + } + } // clean workspace + stage('submodules') { + steps { sh "git submodule init && git submodule update" } + } + stage('dependencies') { steps { sh "ci/dependencies.sh" } } + stage('autoconf') { + steps { + sh "./autogen.sh --enable-debug" + } // autoconf steps + } // autoconf stage + } // stages +} // pipeline diff --git a/ci/dependencies.sh b/ci/dependencies.sh index cef2ea8f98..6aed9f2f84 100755 --- a/ci/dependencies.sh +++ b/ci/dependencies.sh @@ -69,8 +69,9 @@ if [ -f /etc/os-release ]; then build_librsync fi else - echo "Unsupported version of redhat for $0" - exit 1 + sudo yum install epel-release -y + sudo yum update -y + sudo yum install -y gcc gdb make git libtool autoconf automake byacc flex openssl-devel pcre2-devel lmdb-devel pam-devel flex-devel libyaml-devel fakeroot libxml2-devel librsync-devel fi elif [ "$ID" = "alpine" ]; then $GAINROOT apk update diff --git a/tests/unit/Makefile.am b/tests/unit/Makefile.am index 3a4bb0a9d4..23c7051b3f 100644 --- a/tests/unit/Makefile.am +++ b/tests/unit/Makefile.am @@ -405,6 +405,7 @@ nfs_test_SOURCES = nfs_test.c nfs_test_LDADD = ../../libpromises/libpromises.la libtest.la init_script_test_helper_SOURCES = init_script_test_helper.c +check_PROGRAMS += init_script_test_helper init_script_test.sh: init_script_test_helper CLEANFILES += init_script_test_helper endif