This repository has been archived by the owner on Jan 13, 2024. It is now read-only.
/
.local.jenkins.lin.yml
35 lines (27 loc) · 1.72 KB
/
.local.jenkins.lin.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
language: python
python:
- { PATH: "{{Python37}}", VERSION: 3.7, DIST: std, PYINT: python3.7 }
- { PATH: "{{Python38}}", VERSION: 3.8, DIST: std, PYINT: python3.8 }
virtualenv:
- path: {{ospathjoin(root_path, pickname("$NAME_JENKINS", project_name + "_$VERSION_$DIST_$NAME"), "_venv")}}
install:
- $PYINT -m pip install --upgrade pip
- $PYINT -m pip install --no-cache-dir --no-deps --upgrade --index http://localhost:8067/simple/ jyquickhelper pyquickhelper cpyquickhelper pyensae --extra-index-url=https://pypi.python.org/simple/
- $PYINT -m pip install --no-cache-dir --no-deps --upgrade --index http://localhost:8067/simple/ onnxruntime_dnnl --extra-index-url=https://pypi.python.org/simple/
- $PYINT -m pip install --no-cache-dir --no-deps --upgrade --index http://localhost:8067/simple/ asv onnx skl2onnx onnxmltools onnxconverter_common --extra-index-url=https://pypi.python.org/simple/
- $PYINT -m pip install -r requirements.txt --upgrade
- $PYINT --version
- $PYINT -m pip freeze
before_script:
- $PYINT -u setup.py build_ext --inplace
script:
- { CMD: "$PYINT -u setup.py unittests", NAME: "UT", TIMEOUT: 7200 }
- { CMD: "$PYINT -u setup.py unittests_LONG", NAME: "UT_LONG", TIMEOUT: 3600 }
- { CMD: "bash bin/run_asv.sh", NAME: "UT_BENCH", TIMEOUT: 7200, CLEAN: "0" }
- { CMD: "bash bin/run_asv2.sh", NAME: "UT_BENCH2", TIMEOUT: 7200, CLEAN: "0" }
after_script:
- if [ ${NAME} == "UT" ] then $PYINT -u setup.py bdist_wheel fi
- if [ ${VERSION} == "3.7" and ${NAME} == "UT" ] then cp dist/*.whl {{root_path}}/../local_pypi/local_pypi_server fi
documentation:
- if [ ${NAME} == "UT" ] then $PYINT -u setup.py build_sphinx fi
- if [ ${NAME} == "UT" ] then cp -R -f _doc/sphinxdoc/build/html dist/html fi