Skip to content

Commit

Permalink
Chore: Add Shellcheck, Flake8 and Pylint to integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
idillon-sfl committed Jul 18, 2024
1 parent 72e071c commit 07886de
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 3 deletions.
7 changes: 5 additions & 2 deletions integration-tests/src/runTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
resolveCliArgsFromVSCodeExecutablePath,
runTests
} from '@vscode/test-electron'
import { pythonVersion, bashVersion } from './utils/version'
import { pythonVersion, bashVersion, pylintVersion, flake8Version, shellcheckVersion } from './utils/version'

async function main (): Promise<void> {
try {
Expand All @@ -23,7 +23,10 @@ async function main (): Promise<void> {
[
...args,
'--install-extension', `mads-hartmann.bash-ide-vscode@${bashVersion}`,
'--install-extension', `ms-python.python@${pythonVersion}`
'--install-extension', `ms-python.python@${pythonVersion}`,
'--install-extension', `timonwong.shellcheck@${shellcheckVersion}`,
'--install-extension', `ms-python.flake8@${flake8Version}`,
'--install-extension', `ms-python.pylint@${pylintVersion}`
],
{
encoding: 'utf-8',
Expand Down
5 changes: 4 additions & 1 deletion integration-tests/src/utils/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@

// Required extension versions
export const bashVersion = '1.41.0'
export const pythonVersion = '2024.6.0'
export const pythonVersion = '2024.10.0'
export const shellcheckVersion = '0.37.1'
export const flake8Version = '2023.10.0'
export const pylintVersion = '2023.10.1'
21 changes: 21 additions & 0 deletions scripts/update-ref.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,27 @@ echo "export const pythonVersion = '$(git tag --sort=-v:refname | head -n 1 | se
cd ..
rm -rf vscode-python

git clone --depth 1 --filter=blob:none --sparse https://github.com/vscode-shellcheck/vscode-shellcheck
cd vscode-shellcheck
git fetch --tags
echo "export const shellcheckVersion = '$(git tag --sort=-v:refname | head -n 1 | sed "s/^v//")'" >> ../$TMP
cd ..
rm -rf vscode-shellcheck

git clone --depth 1 --filter=blob:none --sparse https://github.com/microsoft/vscode-flake8
cd vscode-flake8
git fetch --tags
echo "export const flake8Version = '$(git tag --sort=-v:refname | head -n 1 | sed "s/^v//")'" >> ../$TMP
cd ..
rm -rf vscode-flake8

git clone --depth 1 --filter=blob:none --sparse https://github.com/microsoft/vscode-pylint
cd vscode-pylint
git fetch --tags
echo "export const pylintVersion = '$(git tag --sort=-v:refname | head -n 1 | sed "s/^v//")'" >> ../$TMP
cd ..
rm -rf vscode-pylint

cp $TMP $DEST
rm $TMP

Expand Down

0 comments on commit 07886de

Please sign in to comment.