Skip to content

Commit

Permalink
Added enum checks after linter, and changed folder for npm install
Browse files Browse the repository at this point in the history
  • Loading branch information
whsol committed Jul 15, 2021
1 parent 5639fcb commit e4d27f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/buildsCI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ jobs:
echo PATH=$PATH
cd wrappers/nodejs/tools && npm install && cd ..;
node ./tools/linter.js;
python ./tools/enums.py -i ../../include/librealsense2 -a ./src -v
export PATH=$OLDPATH && unset OLDPATH && cd ../../;
mkdir build
sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test;
Expand All @@ -260,8 +261,7 @@ jobs:
python ./wrappers/nodejs/tools/enums.py -i ./include/librealsense2 -a ./wrappers/nodejs/src -v
cmake .. -DBUILD_PYTHON_BINDINGS=true -DBUILD_NODEJS_BINDINGS=true -DPYBIND11_PYTHON_VERSION=2.7 -DCHECK_FOR_UPDATES=true
cmake --build . --config $LRS_BUILD_CONFIG -- -j4
cd ./wrappers/nodejs/
npm install
cd ../wrappers/nodejs/ && npm install
- name: Test
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion wrappers/nodejs/tools/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def run(include_folder_path, addon_folder_path):
parser = argparse.ArgumentParser(description='Ping script')
parser.add_argument('-i', action='store', dest='include_folder_path', required=True)
parser.add_argument('-a', action='store', dest='addon_folder_path', required=True)
parser.add_argument('-v', '--verbose', action='store_true', help='print not user enums')
parser.add_argument('-v', '--verbose', action='store_true', help='print not used enums')

args = parser.parse_args()

Expand Down

0 comments on commit e4d27f5

Please sign in to comment.