Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
lua-language-server-srb2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LJ Sonic
lua-language-server-srb2
Commits
68e3ecb7
Commit
68e3ecb7
authored
4 years ago
by
actboy168
Browse files
Options
Downloads
Patches
Plain Diff
cleanup
parent
a82525de
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
make.lua
+7
-14
7 additions, 14 deletions
make.lua
make/unittest.lua
+0
-22
0 additions, 22 deletions
make/unittest.lua
with
7 additions
and
36 deletions
make.lua
+
7
−
14
View file @
68e3ecb7
local
lm
=
require
'luamake'
local
lm
=
require
'luamake'
if
lm
.
plat
==
"macos"
then
lm
.
flags
=
{
"-mmacosx-version-min=10.13"
,
}
end
lm
:
import
(
"3rd/bee.lua/make.lua"
,
{
lm
:
import
(
"3rd/bee.lua/make.lua"
,
{
EXE_RESOURCE
=
"../../make/lua-language-server.rc"
EXE_RESOURCE
=
"../../make/lua-language-server.rc"
})
})
lm
.
rootdir
=
'3rd/'
lm
:
lua_dll
'lpeglabel'
{
lm
:
lua_dll
'lpeglabel'
{
rootdir
=
'3rd'
,
sources
=
'lpeglabel/*.c'
,
sources
=
'lpeglabel/*.c'
,
visibility
=
'default'
,
visibility
=
'default'
,
defines
=
{
defines
=
{
...
@@ -30,16 +23,16 @@ lm:build 'install' {
...
@@ -30,16 +23,16 @@ lm:build 'install' {
}
}
}
}
local
fs
=
require
'bee.filesystem'
local
pf
=
require
'bee.platform'
local
exe
=
pf
.
OS
==
'Windows'
and
".exe"
or
""
lm
:
build
'unittest'
{
lm
:
build
'unittest'
{
'$luamake'
,
'lua'
,
'make/unittest.lua'
,
fs
.
path
'bin'
/
pf
.
OS
/
(
'lua-language-server'
..
exe
),
'test.lua'
,
'-E'
,
pool
=
"console"
,
deps
=
{
deps
=
{
'install'
,
'install'
,
'test'
,
'test'
,
}
}
}
}
lm
:
default
{
lm
:
default
'unittest'
'install'
,
'test'
,
'unittest'
,
}
This diff is collapsed.
Click to expand it.
make/unittest.lua
deleted
100644 → 0
+
0
−
22
View file @
a82525de
local
fs
=
require
'bee.filesystem'
local
sp
=
require
'bee.subprocess'
local
pf
=
require
'bee.platform'
local
exe
=
pf
.
OS
==
'Windows'
and
".exe"
or
""
local
CWD
=
fs
.
current_path
()
local
process
=
assert
(
sp
.
spawn
{
CWD
/
'bin'
/
pf
.
OS
/
(
'lua-language-server'
..
exe
),
CWD
/
'test.lua'
,
'-E'
,
stdout
=
true
,
stderr
=
true
,
})
for
line
in
process
.
stdout
:
lines
'l'
do
print
(
line
)
end
process
:
wait
()
local
err
=
process
.
stderr
:
read
'a'
if
err
~=
''
then
error
(
err
)
end
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment