diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-08-28 23:42:50 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-08-28 23:42:50 +0800 |
commit | 8b8cb7760d9ee01475d068f18ea88be1e96f1cf0 (patch) | |
tree | 883b7983746e8918dcda3525a84e654f73cc438f /server/publish.lua | |
parent | b55a6b05c01238de4555e0cd92ef8305254394be (diff) | |
download | lua-language-server-8b8cb7760d9ee01475d068f18ea88be1e96f1cf0.zip |
自动测试支持
Diffstat (limited to 'server/publish.lua')
-rw-r--r-- | server/publish.lua | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/server/publish.lua b/server/publish.lua index 9437d85e..12a4e9be 100644 --- a/server/publish.lua +++ b/server/publish.lua @@ -75,7 +75,7 @@ end local function runTest(root) local ext = platform.OS == 'Windows' and '.exe' or '' - local exe = root / 'bin' / 'lua-language-server' .. ext + local exe = root / platform.OS / 'bin' / 'lua-language-server' .. ext local test = root / 'test.lua' local lua = subprocess.spawn { exe, @@ -140,13 +140,16 @@ local count = copyFiles(EXTENSION , out) { ['tsconfig.json'] = true, }, ['server'] = { - ['bin'] = true, - ['libs'] = true, - ['locale'] = true, - ['src'] = true, - ['test'] = true, - ['main.lua'] = true, - ['test.lua'] = true, + ['Windows'] = true, + ['Macos'] = true, + ['Linux'] = true, + ['libs'] = true, + ['locale'] = true, + ['src'] = true, + ['test'] = true, + ['main.lua'] = true, + ['platform.lua'] = true, + ['test.lua'] = true, ['build_package.lua'] = true, }, ['images'] = { @@ -168,9 +171,9 @@ runTest(out / 'server') print('删除多余文件...') removeFiles(out) { ['server'] = { - ['log'] = true, - ['test'] = true, - ['test.lua'] = true, + ['log'] = true, + ['test'] = true, + ['test.lua'] = true, ['build_package.lua'] = true, }, } |