Skip to content

Commit 8d0f96a

Browse files
authored
reenable jvm target (#498)
* reenable jvm target * reorganised build files * upgrade lix * fixed haxeshim's handling of -x
1 parent 9c71818 commit 8d0f96a

29 files changed

+127
-112
lines changed

.github/workflows/checkstyle-linux.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ jobs:
4444
mv haxe3_libraries haxe_libraries
4545
- name: Run lix download
4646
run: npx lix download
47+
- name: Fix haxeshim for "-x"
48+
run: ./fixHaxeshim.sh
4749
- name: Print versions
4850
run: |
4951
npx haxe -version
@@ -62,12 +64,15 @@ jobs:
6264
run: npx haxe buildSchema.hxml
6365
- name: Run neko tests
6466
if: matrix.haxe-version == '3.4.7'
65-
run: npx haxe -D codecov_json buildTest.hxml
67+
run: npx haxe -D codecov_json testAndResources.hxml
6668
- name: Run eval tests
6769
if: matrix.haxe-version != '3.4.7'
68-
run: npx haxe -D codecov_json buildTest.hxml
70+
run: npx haxe -D codecov_json testAndResources.hxml
6971
- name: Run Java tests
7072
run: npx haxe testJava.hxml
73+
- name: Run Jvm tests
74+
if: matrix.haxe-version != '3.4.7'
75+
run: npx haxe testJvm.hxml
7176
- name: Format and upload codeclimate coverage
7277
if: success() && matrix.haxe-version == '4.0.5'
7378
run: |

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ install:
2020
- if [[ "$HAXE_VERSION" == "haxe4" ]]; then npx lix download haxe 4.0.5; npx lix use haxe 4.0.5; fi
2121
- if [[ "$HAXE_VERSION" == "nightly" ]]; then npx lix download haxe nightly; npx lix use haxe nightly; fi
2222
- npx lix download
23+
- ./fixHaxeshim.sh
2324
- npx haxe -version
2425
- npx neko -version
2526
- npx haxelib list
@@ -33,8 +34,9 @@ script:
3334
- npx haxe buildJS.hxml
3435
- if [[ "$HAXE_VERSION" != "nightly" ]]; then npx haxe buildCpp.hxml; fi
3536
- npx haxe buildSchema.hxml
36-
- npx haxe -D codecov_json buildTest.hxml
37+
- npx haxe -D codecov_json testAndResources.hxml
3738
- npx haxe testJava.hxml
39+
- if [[ "$HAXE_VERSION" != "haxe347" ]]; then npx haxe testJvm.hxml; fi
3840
- (cd src; ../cc-test-reporter format-coverage -t lcov ../lcov.info)
3941

4042
after_script:

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
- Added support for final in `MagicNumber`, fixes [#494](https://github.com/HaxeCheckstyle/haxe-checkstyle/issues/494) ([#495](https://github.com/HaxeCheckstyle/haxe-checkstyle/issues/495))
66
- Fixed handling `OBJECT_DECL` token in `RightCurly`, fixes [#496](https://github.com/HaxeCheckstyle/haxe-checkstyle/issues/496) ([#497](https://github.com/HaxeCheckstyle/haxe-checkstyle/issues/497))
7+
- Reorganised build files ([#498](https://github.com/HaxeCheckstyle/haxe-checkstyle/issues/498))
78

89
## version 2.6.1 (2019-12-17)
910

build.hxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
buildGlobal.hxml
1+
build/common.hxml
22
-main checkstyle.Main
33
-neko run.n

build/Build.hx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ class Build {
1414
callLix("buildDebug.hxml", "runD.n");
1515
callLix("buildJS.hxml", "run.js");
1616
callLix("buildSchema.hxml", "Json schema");
17-
callLix("buildTest.hxml", "Unittests");
17+
callLix("testAndResources.hxml", "Unittests neko / eval + generate resoucres");
18+
callLix("testJava.hxml", "Unittests Java");
19+
#if haxe4
20+
callLix("testJvm.hxml", "Unittests Jvm");
21+
#end
1822
Sys.exit(exitCode);
1923
}
2024

@@ -27,7 +31,7 @@ class Build {
2731
public static function callLix(buildFile:String, title:String) {
2832
var startTime = Timer.stamp();
2933
var result:Int = Sys.command("npx", ["haxe", buildFile]);
30-
Sys.println('building $title (${Timer.stamp() - startTime})');
34+
Sys.println('building $title (took ${Timer.stamp() - startTime})');
3135
if (result != 0) {
3236
exitCode = result;
3337
}
File renamed without changes.

build/commonTest.hxml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
build/common.hxml
2+
-cp test
3+
-lib mcover
4+
-lib munit
5+
-lib test-adapter
6+
-D unittest
7+
# -debug
8+
--macro mcover.MCover.coverage(['checkstyle'], ['src'], ['checkstyle.reporter', 'checkstyle.Main'])

buildCpp.hxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
buildGlobal.hxml
1+
build/common.hxml
22
# -lib hxcpp-debugger
33
# -D HXCPP_DEBUGGER
44

buildDebug.hxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
buildGlobal.hxml
1+
build/common.hxml
22
-main checkstyle.Main
33
-debug
44
-neko runD.n

buildJS.hxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
buildGlobal.hxml
1+
build/common.hxml
22
-lib hxnodejs
33
-main checkstyle.Main
44
-js haxecheckstyle.js

0 commit comments

Comments
 (0)