Skip to content

Commit

Permalink
Update RDTF code generation to use latest nodejs data (unicode-org#378)
Browse files Browse the repository at this point in the history
* Update RDTF code generation to use latest nodejs data

* Add all node versions
  • Loading branch information
sven-oly authored Jan 7, 2025
1 parent f70f4b2 commit ac6be50
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion testgen/generators/relativedatetime_fmt.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ def process_test_data(self):
'icu73': '20.1.0',
'icu72': '18.14.2',
'icu71': '18.7.0',
'icu70': '14.21.3',
'icu69': '14.18.3',
'icu68': '14.17.0',
'icu67': '14.16.0',
'icu66': '14.0.0'
}

exec_list = ['node generators/rdt_fmt_gen.js']
Expand All @@ -29,8 +34,12 @@ def process_test_data(self):
exec_list.append(str(self.run_limit))
print("RDTF generator: ", exec_list)

nodejs_version = icu_nvm_versions[self.icu_version]
source_command = 'source ~/.nvm/nvm.sh; nvm install %s; nvm use %s --silent' % (
nodejs_version, nodejs_version)

run_list = [
['source ~/.nvm/nvm.sh; nvm install 21.6.0; nvm use 21.6.0 --silent'],
[source_command],
exec_list,
['mv rdt_fmt*.json icu74']
]
Expand Down

0 comments on commit ac6be50

Please sign in to comment.