This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new a9f3e18  Travis needs relative path
a9f3e18 is described below

commit a9f3e184c14ace9af6fd3c2200732e6527c471cf
Author: Sebb <[email protected]>
AuthorDate: Sat Aug 7 23:40:46 2021 +0100

    Travis needs relative path
---
 www/board/agenda/Rakefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/www/board/agenda/Rakefile b/www/board/agenda/Rakefile
index a662222..079d0fd 100644
--- a/www/board/agenda/Rakefile
+++ b/www/board/agenda/Rakefile
@@ -1,4 +1,6 @@
-$LOAD_PATH.unshift '/srv/whimsy/lib'
+# Need relative path for CI such as Travis
+lib = File.expand_path('../' * 3 + 'lib', __dir__)
+$LOAD_PATH.unshift lib unless $LOAD_PATH.include? lib
 
 # Remove world writable directories that Travis may insert into the PATH,
 # as these cause security errors during testing

Reply via email to