aboutsummaryrefslogtreecommitdiff
path: root/test/helpers.lua
diff options
context:
space:
mode:
authorJohn Szakmeister <jszakmeister@users.noreply.github.com>2019-09-26 05:35:12 -0400
committerGitHub <noreply@github.com>2019-09-26 05:35:12 -0400
commit298da52fdca9a201e69486d9dff40738442d2312 (patch)
treedc3ef4abed637f143e98d44f2897184cd3dc8a17 /test/helpers.lua
parent54c66e636aa7c9f9379c0028e62c7d6d617f691c (diff)
parentb52ae0e8ba04498b0dd6de2e2947a45057111b3c (diff)
downloadrneovim-298da52fdca9a201e69486d9dff40738442d2312.tar.gz
rneovim-298da52fdca9a201e69486d9dff40738442d2312.tar.bz2
rneovim-298da52fdca9a201e69486d9dff40738442d2312.zip
Merge pull request #10907 from jszakmeister/add-freebsd-sourcehut-support
build: add support for building for FreeBSD under Sourcehut
Diffstat (limited to 'test/helpers.lua')
-rw-r--r--test/helpers.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/helpers.lua b/test/helpers.lua
index ebc0a7d811..30e43a9ea4 100644
--- a/test/helpers.lua
+++ b/test/helpers.lua
@@ -715,11 +715,14 @@ end
function module.isCI(name)
local any = (name == nil)
- assert(any or name == 'appveyor' or name == 'quickbuild' or name == 'travis')
+ assert(any or name == 'appveyor' or name == 'quickbuild' or name == 'travis'
+ or name == 'sourcehut')
local av = ((any or name == 'appveyor') and nil ~= os.getenv('APPVEYOR'))
local tr = ((any or name == 'travis') and nil ~= os.getenv('TRAVIS'))
local qb = ((any or name == 'quickbuild') and nil ~= lfs.attributes('/usr/home/quickbuild'))
- return tr or av or qb
+ local sh = ((any or name == 'sourcehut') and nil ~= os.getenv('SOURCEHUT'))
+ return tr or av or qb or sh
+
end
-- Gets the contents of $NVIM_LOG_FILE for printing to the build log.