Skip to content

Commit

Permalink
Use a specific tree-sitter CLI version in CI, for binary compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
ubolonton committed Sep 26, 2020
1 parent 966a9e8 commit b3e71c8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .azure-pipelines/steps/setup-tree-sitter-cli.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
parameters:
version: 0.16.9

steps:
- task: NodeTool@0
inputs:
versionSpec: '12.x'

- script: |
echo ##vso[task.setvariable variable=TREE_SITTER_DIR]%CD%\ci-tools\tree-sitter
npm install -g tree-sitter-cli
npm install -g tree-sitter-cli@${{ parameters.version }}
displayName: Install tree-sitter-cli and set TREE_SITTER_DIR env var (Windows)
condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'))

Expand All @@ -15,7 +18,7 @@ steps:
mkdir -p "$NPM_PREFIX"
echo "##vso[task.setvariable variable=TREE_SITTER_DIR]$(pwd)/ci-tools/tree-sitter"
npm config set prefix "$NPM_PREFIX"
npm install -g tree-sitter-cli
npm install -g tree-sitter-cli@${{ parameters.version }}
echo "##vso[task.prependpath]$NPM_PREFIX/bin"
displayName: Install tree-sitter-cli and set TREE_SITTER_DIR env var
condition: and(succeeded(), ne(variables['Agent.OS'], 'Windows_NT'))
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ install:
before_script:
- nvm install 10
- nvm use 10
- npm install -g tree-sitter-cli
- npm install -g tree-sitter-cli@0.16.9

script:
- make test

0 comments on commit b3e71c8

Please sign in to comment.