add first test

This commit is contained in:
Bassem Girgis
2020-11-12 10:40:37 -06:00
parent b2bac942b8
commit 0341fd46fd
11 changed files with 105 additions and 4 deletions

35
.vscode/pyenv.bat vendored Normal file
View File

@@ -0,0 +1,35 @@
@echo off
:: get the project root directory
set PROJECT_ROOT_DIR=%~dp0\..\
pushd .
cd %PROJECT_ROOT_DIR%
set PROJECT_ROOT_DIR=%CD%
popd
:: make sure python 3.8.6 is installed in the default location
set PROJECT_PYTHON_BASE_EXE=C:\Python\3.8.6_x64\python.exe
if not exist "%PROJECT_PYTHON_BASE_EXE%" (
echo BUILD ERROR: Cannot find python installation: "%PROJECT_PYTHON_BASE_EXE%"
exit 1
)
:: create/activate python virtual env for development
set PROJECT_PY_VER_ENV_DIR=%PROJECT_ROOT_DIR%\.venv\
set PROJECT_PY_VER_ENV_ACTIVATE=%PROJECT_PY_VER_ENV_DIR%Scripts\activate.bat
echo Using python dev env "%PROJECT_PY_VER_ENV_DIR%"
if exist "%PROJECT_PY_VER_ENV_ACTIVATE%" (
call "%PROJECT_PY_VER_ENV_ACTIVATE%"
exit 0
)
"%PROJECT_PYTHON_BASE_EXE%" -m pip install -U pip setuptools wheel
"%PROJECT_PYTHON_BASE_EXE%" -m venv %PROJECT_PY_VER_ENV_DIR%
call "%PROJECT_PY_VER_ENV_ACTIVATE%"
python -m pip install -U pip setuptools wheel --no-warn-script-location
python -m pip install -U -r "%PROJECT_ROOT_DIR%\requirements_windows.txt" --no-warn-script-location
python -m pip uninstall pathlib -y

3
.vscode/settings.json vendored Normal file
View File

@@ -0,0 +1,3 @@
{
"C_Cpp.default.configurationProvider": "ms-vscode.cmake-tools"
}

12
.vscode/vsc.bat vendored Normal file
View File

@@ -0,0 +1,12 @@
@echo off
:: get the project root directory
set PROJECT_ROOT_DIR=%~dp0\..\
pushd .
cd %PROJECT_ROOT_DIR%
set PROJECT_ROOT_DIR=%CD%
popd
:: start VS Code: assume it is installed
Start "" /D %PROJECT_ROOT_DIR% "Code" .