Skip to content

Commit bbf482a

Browse files
authored
fixed schema generation for Haxe 4.1 and nightly (#499)
* fixed schema generation for Haxe 4.1 and nightly * upgraded to lix 15.9.0 * use latest mcover * added Haxe 4.1.1 to build matrix
1 parent 8435aba commit bbf482a

21 files changed

+60
-54
lines changed

.github/workflows/checkstyle-linux.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
strategy:
1717
matrix:
18-
haxe-version: ['3.4.7', '4.0.5', 'nightly']
18+
haxe-version: ['3.4.7', '4.0.5', '4.1.1', 'nightly']
1919
env:
2020
CC_TEST_REPORTER_ID: 1dff6f89d7179dff5db635c6b4fe64acdd5694c9ed44d7da5f12f0f7d3d163b7
2121
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}
@@ -26,7 +26,7 @@ jobs:
2626
with:
2727
node-version: 10
2828
- name: Installing codeclimate client
29-
if: matrix.haxe-version == '4.0.5'
29+
if: matrix.haxe-version == '4.1.1'
3030
run: |
3131
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
3232
chmod +x ./cc-test-reporter
@@ -57,7 +57,7 @@ jobs:
5757
run: npx haxe buildJS.hxml
5858
- name: Build C++ version
5959
if: matrix.haxe-version != 'nightly'
60-
run: npx haxe buildCpp.hxml
60+
run: echo "y" | npx haxe buildCpp.hxml
6161
- name: Build JSON schema
6262
run: npx haxe buildSchema.hxml
6363
- name: Run neko tests
@@ -72,13 +72,13 @@ jobs:
7272
if: matrix.haxe-version != '3.4.7'
7373
run: npx haxe testJvm.hxml
7474
- name: Format and upload codeclimate coverage
75-
if: success() && matrix.haxe-version == '4.0.5'
75+
if: success() && matrix.haxe-version == '4.1.1'
7676
run: |
7777
( \
7878
cd src; \
7979
../cc-test-reporter format-coverage -t lcov ../lcov.info; \
8080
../cc-test-reporter upload-coverage; \
8181
)
8282
- name: Upload results to codecov
83-
if: success() && matrix.haxe-version == '4.0.5'
83+
if: success() && (matrix.haxe-version == '3.4.7' || matrix.haxe-version == '4.1.1')
8484
run: bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports"

.haxerc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"version": "4.0.5",
2+
"version": "4.1.1",
33
"resolveLibs": "scoped"
44
}

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ env:
1010
matrix:
1111
- HAXE_VERSION=haxe347
1212
- HAXE_VERSION=haxe4
13+
- HAXE_VERSION=haxe41
1314
- HAXE_VERSION=nightly
1415

1516
install:
@@ -18,6 +19,7 @@ install:
1819
- if [[ "$HAXE_VERSION" == "haxe347" ]]; then mv haxe_libraries haxe4_libraries; mv haxe3_libraries haxe_libraries; fi
1920
- if [[ "$HAXE_VERSION" == "haxe347" ]]; then npx lix download haxe 3.4.7; npx lix use haxe 3.4.7; fi
2021
- if [[ "$HAXE_VERSION" == "haxe4" ]]; then npx lix download haxe 4.0.5; npx lix use haxe 4.0.5; fi
22+
- if [[ "$HAXE_VERSION" == "haxe41" ]]; then npx lix download haxe 4.1.1; npx lix use haxe 4.1.1; fi
2123
- if [[ "$HAXE_VERSION" == "nightly" ]]; then npx lix download haxe nightly; npx lix use haxe nightly; fi
2224
- npx lix download
2325
- npx haxe -version
@@ -39,7 +41,7 @@ script:
3941
- (cd src; ../cc-test-reporter format-coverage -t lcov ../lcov.info)
4042

4143
after_script:
42-
- if [[ "$HAXE_VERSION" == "haxe4" ]]; then (cd src; ../cc-test-reporter upload-coverage); fi
44+
- if [[ "$HAXE_VERSION" == "haxe41" ]]; then (cd src; ../cc-test-reporter upload-coverage); fi
4345

4446
after_success:
4547
- bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports"

haxe3_libraries/hxcpp.hxml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-D hxcpp=4.0.52
2-
# @install: lix --silent download "haxelib:/hxcpp#4.0.52" into hxcpp/4.0.52/haxelib
3-
# @run: haxelib run-dir hxcpp ${HAXE_LIBCACHE}/hxcpp/4.0.52/haxelib
4-
-cp ${HAXE_LIBCACHE}/hxcpp/4.0.52/haxelib/
1+
# @install: lix --silent download "haxelib:/hxcpp#4.1.1" into hxcpp/4.1.1/haxelib
2+
# @run: haxelib run-dir hxcpp ${HAXE_LIBCACHE}/hxcpp/4.1.1/haxelib
3+
-cp ${HAXE_LIBCACHE}/hxcpp/4.1.1/haxelib/
4+
-D hxcpp=4.1.1

haxe3_libraries/hxnodejs.hxml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
-D hxnodejs=10.0.0
2-
# @install: lix --silent download "gh://github.com/HaxeFoundation/hxnodejs#462c800e16aa0b91df5a7c5d54782b313c3f8730" into hxnodejs/10.0.0/github/462c800e16aa0b91df5a7c5d54782b313c3f8730
3-
-cp ${HAXE_LIBCACHE}/hxnodejs/10.0.0/github/462c800e16aa0b91df5a7c5d54782b313c3f8730/src
4-
--macro allowPackage('sys')
5-
# should behave like other target defines and not be defined in macro context
6-
--macro define('nodejs')
1+
# @install: lix --silent download "haxelib:/hxnodejs#12.1.0" into hxnodejs/12.1.0/haxelib
2+
-cp ${HAXE_LIBCACHE}/hxnodejs/12.1.0/haxelib/src
3+
-D hxnodejs=12.1.0
4+
--macro allowPackage('sys')
5+
# should behave like other target defines and not be defined in macro context
6+
--macro define('nodejs')
7+
--macro _internal.SuppressDeprecated.run()

haxe3_libraries/mconsole.hxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
-D mconsole=1.6.0
21
# @install: lix --silent download "haxelib:/mconsole#1.6.0" into mconsole/1.6.0/haxelib
32
-cp ${HAXE_LIBCACHE}/mconsole/1.6.0/haxelib/
3+
-D mconsole=1.6.0

haxe3_libraries/mcover.hxml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
-D mcover=2.2.1
2-
# @install: lix --silent download "haxelib:/mcover#2.2.1" into mcover/2.2.1/haxelib
1+
# @install: lix --silent download "haxelib:/mcover#2.2.2" into mcover/2.2.2/haxelib
32
-lib mconsole
43
-lib munit
5-
-cp ${HAXE_LIBCACHE}/mcover/2.2.1/haxelib/
4+
-cp ${HAXE_LIBCACHE}/mcover/2.2.2/haxelib/
5+
-D mcover=2.2.2

haxe3_libraries/mlib.hxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-D mlib=2.0.3
21
# @install: lix --silent download "haxelib:/mlib#2.0.3" into mlib/2.0.3/haxelib
32
# @run: haxelib run-dir mlib ${HAXE_LIBCACHE}/mlib/2.0.3/haxelib
43
-cp ${HAXE_LIBCACHE}/mlib/2.0.3/haxelib/
4+
-D mlib=2.0.3

haxe3_libraries/munit.hxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
-D munit=2.3.4
21
# @install: lix --silent download "haxelib:/munit#2.3.4" into munit/2.3.4/haxelib
32
# @run: haxelib run-dir munit ${HAXE_LIBCACHE}/munit/2.3.4/haxelib
43
-lib mcover
54
-lib mlib
65
-cp ${HAXE_LIBCACHE}/munit/2.3.4/haxelib/
6+
-D munit=2.3.4

haxe3_libraries/tokentree.hxml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1+
# @install: lix --silent download "gh://github.com/HaxeCheckstyle/tokentree#119c4cefa927018472cd57f5de1063d43f00da95" into tokentree/1.0.24/github/119c4cefa927018472cd57f5de1063d43f00da95
2+
-cp ${HAXE_LIBCACHE}/tokentree/1.0.24/github/119c4cefa927018472cd57f5de1063d43f00da95/src
13
-D tokentree=1.0.24
2-
# @install: lix --silent download "haxelib:/tokentree#1.0.24" into tokentree/1.0.24/haxelib
3-
-cp ${HAXE_LIBCACHE}/tokentree/1.0.24/haxelib/src

0 commit comments

Comments
 (0)