[Rt-commit] rtir branch, 5.0/travis-test, created. 4.0.1rc1-118-g16d210c8
Jim Brandt
jbrandt at bestpractical.com
Thu Apr 16 17:20:28 EDT 2020
The branch, 5.0/travis-test has been created
at 16d210c87b8c1273cc8825df68d6cbd58e890570 (commit)
- Log -----------------------------------------------------------------
commit d610ed7994e40dc5602af014e878993ac5a50eaf
Author: Jim Brandt <jbrandt at bestpractical.com>
Date: Thu Apr 16 13:13:32 2020 -0400
Update Module::Install
Needed for new Module::Install::RTx.
diff --git a/META.yml b/META.yml
index dc5089b4..0a2ddf98 100644
--- a/META.yml
+++ b/META.yml
@@ -33,6 +33,6 @@ requires:
resources:
license: http://opensource.org/licenses/gpl-license.php
version: 4.0.1rc1
-x_module_install_rtx_version: '0.40'
+x_module_install_rtx_version: '0.41'
x_requires_rt: 4.6.0
-x_rt_too_new: 4.8.0
+x_rt_too_new: 5.2.0
diff --git a/inc/Module/Install/RTx.pm b/inc/Module/Install/RTx.pm
index 7cad5299..d371af9b 100644
--- a/inc/Module/Install/RTx.pm
+++ b/inc/Module/Install/RTx.pm
@@ -8,7 +8,7 @@ no warnings 'once';
use Module::Install::Base;
use base 'Module::Install::Base';
-our $VERSION = '0.40';
+our $VERSION = '0.41';
use FindBin;
use File::Glob ();
@@ -53,7 +53,7 @@ sub RTx {
my @look = @INC;
unshift @look, grep {defined and -d $_} @try;
push @look, grep {defined and -d $_}
- map { ( "$_/rt4/lib", "$_/lib/rt4", "$_/lib" ) } @prefixes;
+ map { ( "$_/rt5/lib", "$_/lib/rt5", "$_/rt4/lib", "$_/lib/rt4", "$_/lib" ) } @prefixes;
last if eval {local @INC = @look; require RT; $RT::LocalLibPath};
warn
commit 16d210c87b8c1273cc8825df68d6cbd58e890570
Author: Jim Brandt <jbrandt at bestpractical.com>
Date: Thu Apr 16 17:20:17 2020 -0400
Initial travis testing file
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 00000000..3691e3af
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,20 @@
+language: bash
+services: docker
+
+notifications:
+ slack:
+ secure: ebb/6lbr1ob7wMh04C5PzM5/NNz6IstEUaUROA7BATuKKgPetl6qwmQNwvlwE5zYvJQBWQwKJ70JaCzJkXK6JVMVRRAWsXINJTzMfSqsoXEcJ59c5isf0bsnspVO7jxHTfXF/NZngR4EuPwH5v5lWp9m++j90t9nBKFFVi34WUE=
+
+env:
+ - RT_DBA_USER=root RT_DBA_PASSWORD=password DB_VERSION_TAG=10.3
+
+# $TRAVIS_BUILD_DIR will have a clone of the current branch
+before_install:
+ - docker run --name mariadb -e MYSQL_ROOT_PASSWORD=password -d mariadb:$DB_VERSION_TAG
+ - docker build -t rt-base .
+ - docker run -d -v $TRAVIS_BUILD_DIR:/rtir --name rtir --link mariadb:db rt-base
+ - docker ps -a
+ - docker exec -it rtir bash -c "cd /rtir && perl Makefile.PL"
+
+script:
+ - docker exec -it rtir bash -c "cd /rtir && prove -l t/*"
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 00000000..a7e3f809
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,25 @@
+FROM bpssysadmin/rt-base-debian-stretch
+
+LABEL maintainer="Best Practical Solutions <contact at bestpractical.com>"
+
+# Valid values are RT branches like 5.0-trunk or version tags like rt-4.4.4
+ENV RT_VERSION 5.0-trunk
+ENV RT_TEST_DEVEL 1
+ENV RT_DBA_USER root
+ENV RT_DBA_PASSWORD password
+ENV RT_TEST_DB_HOST=172.17.0.2
+ENV RT_TEST_RT_HOST=172.17.0.3
+
+RUN cd /usr/local/src \
+ && git clone https://github.com/bestpractical/rt.git \
+ && cd rt \
+ && git checkout $RT_VERSION \
+ && ./configure.ac \
+ --disable-gpg --disable-smime --enable-developer --enable-gd --enable-graphviz --with-db-type=SQLite \
+ && make install \
+ && make initdb \
+ && rm -rf /usr/local/src/*
+
+RUN cpanm Parse::BooleanLogic
+
+CMD tail -f /dev/null
-----------------------------------------------------------------------
More information about the rt-commit
mailing list