Skip to content

Commit 75ccc4a

Browse files
authored
retired Haxe 3 compilation support (#502)
* retired Haxe 3 compilation support * updated haxeparser, tokentree, json2object and munit libs
1 parent 1a13453 commit 75ccc4a

File tree

156 files changed

+215
-535
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

156 files changed

+215
-535
lines changed

.github/workflows/checkstyle-linux.yml

Lines changed: 4 additions & 16 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', '4.1.2']
18+
haxe-version: ['4.0.5', '4.1.4', '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.1.2'
29+
if: matrix.haxe-version == '4.1.4'
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
@@ -37,11 +37,6 @@ jobs:
3737
run: |
3838
npx lix download haxe ${{ matrix.haxe-version }}
3939
npx lix use haxe ${{ matrix.haxe-version }}
40-
- name: Prepare Haxe 3 dependencies
41-
if: matrix.haxe-version == '3.4.7'
42-
run: |
43-
mv haxe_libraries haxe4_libraries
44-
mv haxe3_libraries haxe_libraries
4540
- name: Run lix download
4641
run: npx lix download
4742
- name: Print versions
@@ -60,25 +55,18 @@ jobs:
6055
run: echo "y" | npx haxe buildCpp.hxml
6156
- name: Build JSON schema
6257
run: npx haxe buildSchema.hxml
63-
- name: Run neko tests
64-
if: matrix.haxe-version == '3.4.7'
65-
run: npx haxe -D codecov_json testAndResources.hxml
6658
- name: Run eval tests
67-
if: matrix.haxe-version != '3.4.7'
6859
run: npx haxe -D codecov_json testAndResources.hxml
6960
- name: Run Java tests
7061
run: npx haxe testJava.hxml
71-
- name: Run Jvm tests
72-
if: matrix.haxe-version != '3.4.7'
73-
run: npx haxe testJvm.hxml
7462
- name: Format and upload codeclimate coverage
75-
if: success() && matrix.haxe-version == '4.1.2'
63+
if: success() && matrix.haxe-version == '4.1.4'
7664
run: |
7765
( \
7866
cd src; \
7967
../cc-test-reporter format-coverage -t lcov ../lcov.info; \
8068
../cc-test-reporter upload-coverage; \
8169
)
8270
- name: Upload results to codecov
83-
if: success() && (matrix.haxe-version == '3.4.7' || matrix.haxe-version == '4.1.2')
71+
if: success() && (matrix.haxe-version == '4.1.4')
8472
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.1.2",
2+
"version": "4.1.4",
33
"resolveLibs": "scoped"
44
}

.travis.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,15 @@ env:
88
global:
99
- CC_TEST_REPORTER_ID=1dff6f89d7179dff5db635c6b4fe64acdd5694c9ed44d7da5f12f0f7d3d163b7
1010
matrix:
11-
- HAXE_VERSION=haxe347
1211
- HAXE_VERSION=haxe4
1312
- HAXE_VERSION=haxe41
1413
- HAXE_VERSION=nightly
1514

1615
install:
1716
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter; chmod +x ./cc-test-reporter
1817
- npm install
19-
- if [[ "$HAXE_VERSION" == "haxe347" ]]; then mv haxe_libraries haxe4_libraries; mv haxe3_libraries haxe_libraries; fi
20-
- if [[ "$HAXE_VERSION" == "haxe347" ]]; then npx lix download haxe 3.4.7; npx lix use haxe 3.4.7; fi
2118
- 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.2; npx lix use haxe 4.1.2; fi
19+
- if [[ "$HAXE_VERSION" == "haxe41" ]]; then npx lix download haxe 4.1.4; npx lix use haxe 4.1.4; fi
2320
- if [[ "$HAXE_VERSION" == "nightly" ]]; then npx lix download haxe nightly; npx lix use haxe nightly; fi
2421
- npx lix download
2522
- npx haxe -version
@@ -37,7 +34,6 @@ script:
3734
- npx haxe buildSchema.hxml
3835
- npx haxe -D codecov_json testAndResources.hxml
3936
- npx haxe testJava.hxml
40-
- if [[ "$HAXE_VERSION" != "haxe347" ]]; then npx haxe testJvm.hxml; fi
4137
- (cd src; ../cc-test-reporter format-coverage -t lcov ../lcov.info)
4238

4339
after_script:

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
- 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))
88
- Reorganised build files ([#498](https://github.com/HaxeCheckstyle/haxe-checkstyle/issues/498))
99
- Refactored for tokentree API change ([#500](https://github.com/HaxeCheckstyle/haxe-checkstyle/issues/500) + [#501](https://github.com/HaxeCheckstyle/haxe-checkstyle/issues/501))
10+
- Updated haxeparser lib with latest syntax changes ([#502](https://github.com/HaxeCheckstyle/haxe-checkstyle/issues/502))
11+
- Retired Haxe 3.4.7 compile support ([#502](https://github.com/HaxeCheckstyle/haxe-checkstyle/issues/502))
1012

1113
## version 2.6.1 (2019-12-17)
1214

build/Build.hx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ class Build {
1616
callLix("buildSchema.hxml", "Json schema");
1717
callLix("testAndResources.hxml", "Unittests neko / eval + generate resoucres");
1818
callLix("testJava.hxml", "Unittests Java");
19-
#if haxe4
2019
callLix("testJvm.hxml", "Unittests Jvm");
21-
#end
2220
Sys.exit(exitCode);
2321
}
2422

buildJS.hxml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
build/common.hxml
22
-lib hxnodejs
33
-main checkstyle.Main
4-
-js haxecheckstyle.js
4+
-js haxecheckstyle.js
5+
6+
-cmd mkdir -p bin && cp haxecheckstyle.js bin/checkstyle.js

haxe3_libraries/compiletime.hxml

Lines changed: 0 additions & 3 deletions
This file was deleted.

haxe3_libraries/haxeparser.hxml

Lines changed: 0 additions & 4 deletions
This file was deleted.

haxe3_libraries/hxargs.hxml

Lines changed: 0 additions & 3 deletions
This file was deleted.

haxe3_libraries/hxcpp.hxml

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)