CIUpdate
- added build test - probably fixed some trash - coverage test should only wait for test_dmd_debug
This commit is contained in:
parent
d47a5c3e5c
commit
b434d851ed
4 changed files with 66 additions and 11 deletions
|
|
@ -1,9 +1,60 @@
|
||||||
test_dmd:
|
image: "registry.gitlab.com/mergul/bubel-ecs:latest"
|
||||||
stage: test
|
|
||||||
image: mmcomando/ecs_enviroment
|
variables:
|
||||||
|
DOCKER_DRIVER: overlay2
|
||||||
|
|
||||||
|
stages:
|
||||||
|
- build
|
||||||
|
- test
|
||||||
|
- testcov
|
||||||
|
|
||||||
|
test_compile:
|
||||||
|
stage: build
|
||||||
script:
|
script:
|
||||||
- source $(/script/dlang/install.sh dmd -a) && dmd --version
|
- source $(/script/dlang/install.sh dmd -a) && dmd --version
|
||||||
- source $(/script/dlang/install.sh dmd -a) && dub -c unittest-runner -b unittest
|
- dub build -c unittest-runner -b debug --verror
|
||||||
|
- dub build -c unittest-runner -b release --verror
|
||||||
|
- dub build -c unittest-runner-betterC -b debug --verror
|
||||||
|
- dub build -c unittest-runner-betterC -b release --verror
|
||||||
|
- deactivate
|
||||||
|
- source $(/script/dlang/install.sh ldc -a) && ldc2 --version
|
||||||
|
- dub build -c unittest-runner --compiler=ldc2 -b debug --verror
|
||||||
|
- dub build -c unittest-runner --compiler=ldc2 -b release --verror
|
||||||
|
- dub build -c unittest-runner-betterC --compiler=ldc2 -b debug --verror
|
||||||
|
- dub build -c unittest-runner-betterC --compiler=ldc2 -b release --verror
|
||||||
|
- deactivate
|
||||||
|
allow_failure: true
|
||||||
|
|
||||||
|
test_dmd_debug:
|
||||||
|
stage: test
|
||||||
|
script:
|
||||||
|
- source $(/script/dlang/install.sh dmd -a) && dmd --version
|
||||||
|
- dub -c unittest-runner -b debug --verror
|
||||||
artifacts:
|
artifacts:
|
||||||
reports:
|
reports:
|
||||||
junit: test_report.xml
|
junit: test_report.xml
|
||||||
|
test_dmd:
|
||||||
|
stage: test
|
||||||
|
script:
|
||||||
|
- source $(/script/dlang/install.sh dmd -a) && dmd --version
|
||||||
|
- dub -c unittest-runner -b release --verror
|
||||||
|
artifacts:
|
||||||
|
reports:
|
||||||
|
junit: test_report.xml
|
||||||
|
test_dmd_betterC:
|
||||||
|
stage: test
|
||||||
|
script:
|
||||||
|
- source $(/script/dlang/install.sh dmd -a) && dmd --version
|
||||||
|
- dub -c unittest-runner-betterC -b release --verror
|
||||||
|
artifacts:
|
||||||
|
reports:
|
||||||
|
junit: test_report.xml
|
||||||
|
coverage_test_dmd:
|
||||||
|
stage: testcov
|
||||||
|
needs: ["test_dmd_debug"]
|
||||||
|
script:
|
||||||
|
- mkdir reports
|
||||||
|
- source $(/script/dlang/install.sh dmd -a) && dmd --version
|
||||||
|
- dub -c unittest-runner-cov -b debug --verror
|
||||||
|
after_script:
|
||||||
|
- bash <(curl -s https://codecov.io/bash) -s reports -t 1a0c0169-a721-4085-8252-fed4755dcd8c
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
# Dynamic Entity Component System
|
# Dynamic Entity Component System
|
||||||
[](https://gitlab.com/Mergul/bubel-ecs/-/commits/master)
|
[](https://gitlab.com/Mergul/bubel-ecs/-/commits/master)
|
||||||
[](https://gitlab.com/Mergul/bubel-ecs/-/commits/master)
|
[](https://codecov.io/gl/Mergul/bubel-ecs)
|
||||||
|
|
||||||
Entity-Component-System implementation in D language.
|
Entity-Component-System implementation in D language.
|
||||||
|
|
|
||||||
3
codecov.yml
Normal file
3
codecov.yml
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
ignore:
|
||||||
|
- "tests/*"
|
||||||
|
- "**/traits*"
|
||||||
|
|
@ -442,11 +442,12 @@ export struct EntityManager
|
||||||
|
|
||||||
static struct ComponentsCounts
|
static struct ComponentsCounts
|
||||||
{
|
{
|
||||||
uint readonly;
|
//one more than should be to prevent null arrays (zero length arrays)
|
||||||
uint mutable;
|
uint readonly = 1;
|
||||||
uint excluded;
|
uint mutable = 1;
|
||||||
uint optional;
|
uint excluded = 1;
|
||||||
uint req;
|
uint optional = 1;
|
||||||
|
uint req = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static ComponentsCounts getComponentsCounts()()
|
static ComponentsCounts getComponentsCounts()()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue