mirror of
https://github.com/microsoft/mscclpp.git
synced 2026-04-19 22:39:11 +00:00
add ci hook
This commit is contained in:
2
python/.gitignore
vendored
2
python/.gitignore
vendored
@@ -1,2 +1,2 @@
|
||||
.*.swp
|
||||
|
||||
.venv/
|
||||
|
||||
24
python/ci.sh
Executable file
24
python/ci.sh
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/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
|
||||
|
||||
Reference in New Issue
Block a user