mirror of
https://github.com/Insality/druid.git
synced 2025-06-27 18:37:44 +02:00
commit
36109139fb
23
.github/workflows/ci-workflow.yml
vendored
Normal file
23
.github/workflows/ci-workflow.yml
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
name: Run tests
|
||||||
|
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build_and_run:
|
||||||
|
name: Build and run tests
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
lfs: true
|
||||||
|
- uses: actions/setup-java@v1
|
||||||
|
with:
|
||||||
|
java-version: '13'
|
||||||
|
|
||||||
|
- name: Build && Run
|
||||||
|
run: |
|
||||||
|
deployer_url="https://raw.githubusercontent.com/Insality/defold-deployer/1/deployer.sh"
|
||||||
|
curl -s ${deployer_url} | bash -s lbd --headless --settings ./unit_test.txt
|
||||||
|
|
||||||
|
- name: Upload test report
|
||||||
|
run: bash <(curl -s https://codecov.io/bash)
|
@ -2,6 +2,8 @@
|
|||||||
[](https://insality.github.io/druid/)
|
[](https://insality.github.io/druid/)
|
||||||
|
|
||||||
[](https://github.com/Insality/druid/releases)
|
[](https://github.com/Insality/druid/releases)
|
||||||
|
[](https://github.com/Insality/druid/actions)
|
||||||
|
[](https://codecov.io/gh/Insality/druid)
|
||||||
|
|
||||||
**Druid** - powerful Defold component UI library. Use basic and extended **Druid** components or make your own game-specific components to make amazing GUI in your games.
|
**Druid** - powerful Defold component UI library. Use basic and extended **Druid** components or make your own game-specific components to make amazing GUI in your games.
|
||||||
|
|
||||||
|
@ -11,6 +11,7 @@ height = 900
|
|||||||
[project]
|
[project]
|
||||||
title = druid
|
title = druid
|
||||||
version = 0.5.0
|
version = 0.5.0
|
||||||
|
dependencies = https://github.com/insalitygames/deftest/archive/master.zip
|
||||||
|
|
||||||
[library]
|
[library]
|
||||||
include_dirs = druid
|
include_dirs = druid
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
[liveupdate]
|
[liveupdate]
|
||||||
mode = Zip
|
mode = Zip
|
||||||
zip-filepath = /Users/insality/code/defold/defold-eva/dist
|
supported-versions =
|
||||||
supported-versions = "1.0.0"
|
|
||||||
publickey = /Users/insality/code/provisions/liveupdate/public.der
|
|
||||||
privatekey = /Users/insality/code/provisions/liveupdate/private.der
|
|
||||||
|
37
test/test.collection
Normal file
37
test/test.collection
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
name: "default"
|
||||||
|
scale_along_z: 0
|
||||||
|
embedded_instances {
|
||||||
|
id: "test"
|
||||||
|
data: "components {\n"
|
||||||
|
" id: \"test\"\n"
|
||||||
|
" component: \"/test/test.script\"\n"
|
||||||
|
" position {\n"
|
||||||
|
" x: 0.0\n"
|
||||||
|
" y: 0.0\n"
|
||||||
|
" z: 0.0\n"
|
||||||
|
" }\n"
|
||||||
|
" rotation {\n"
|
||||||
|
" x: 0.0\n"
|
||||||
|
" y: 0.0\n"
|
||||||
|
" z: 0.0\n"
|
||||||
|
" w: 1.0\n"
|
||||||
|
" }\n"
|
||||||
|
"}\n"
|
||||||
|
""
|
||||||
|
position {
|
||||||
|
x: 0.0
|
||||||
|
y: 0.0
|
||||||
|
z: 0.0
|
||||||
|
}
|
||||||
|
rotation {
|
||||||
|
x: 0.0
|
||||||
|
y: 0.0
|
||||||
|
z: 0.0
|
||||||
|
w: 1.0
|
||||||
|
}
|
||||||
|
scale3 {
|
||||||
|
x: 1.0
|
||||||
|
y: 1.0
|
||||||
|
z: 1.0
|
||||||
|
}
|
||||||
|
}
|
16
test/test.script
Normal file
16
test/test.script
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
local deftest = require "deftest.deftest"
|
||||||
|
|
||||||
|
local tests = {
|
||||||
|
-- Test list
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function init(self)
|
||||||
|
print('[DefTest]: Init of DefTest')
|
||||||
|
for i = 1, #tests do
|
||||||
|
deftest.add(tests[i])
|
||||||
|
end
|
||||||
|
|
||||||
|
local is_report = (sys.get_config("test.report") == "1")
|
||||||
|
deftest.run({ coverage = { enabled = is_report } })
|
||||||
|
end
|
9
unit_test.txt
Normal file
9
unit_test.txt
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
[bootstrap]
|
||||||
|
main_collection = /test/test.collectionc
|
||||||
|
|
||||||
|
[display]
|
||||||
|
height = 256
|
||||||
|
width = 256
|
||||||
|
|
||||||
|
[test]
|
||||||
|
report = 1
|
Loading…
x
Reference in New Issue
Block a user