mirror of
https://github.com/microsoft/mscclpp.git
synced 2026-05-12 17:26:04 +00:00
25 lines
388 B
Bash
Executable File
25 lines
388 B
Bash
Executable File
#!/bin/bash
|
|
# CI hook script.
|
|
|
|
set -ex
|
|
|
|
# CD to this directory.
|
|
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
|
cd $SCRIPT_DIR
|
|
|
|
# clean env
|
|
rm -rf .venv build
|
|
|
|
# setup a python virtual env
|
|
python -m venv .venv
|
|
|
|
# activate the virtual env
|
|
source .venv/bin/activate
|
|
|
|
# install venv deps.
|
|
pip install -r requirements.txt
|
|
|
|
# run the build and test.
|
|
./test.sh
|
|
|