代码拉取完成,页面将自动刷新
image: registry.gitlab.com/nibrunie/metalibm:new_ml_ci_image
before_script:
- python3 --version
- pip3 install git+https://github.com/nibrunie/asmde@d5beae9
- pip3 install pyyaml
- pip3 install pylint
# papi is now installed within CI docker image
# - apt install -y libpapi-dev
core_unit_test_py3:
script:
- export PATH=/home/ghdl/bin:$PATH
- export LD_LIBRARY_PATH=/usr/local/lib/:/home/ghdl/lib/
- PYTHONPATH=$PWD:$PYTHONPATH ML_SRC_DIR=$PWD python3 -m unittest discover metalibm_core/tests -p "ut_*.py" -v
soft_unit_tests_py3:
script:
- export PATH=/home/ghdl/bin:$PATH
- export LD_LIBRARY_PATH=/usr/local/lib/:/home/ghdl/lib/
- PYTHONPATH=$PWD:$PYTHONPATH ML_SRC_DIR=$PWD python3 valid/soft_unit_test.py --debug
rtl_unit_tests_py3:
script:
- export PATH=/home/ghdl/bin:$PATH
- export LD_LIBRARY_PATH=/usr/local/lib/:/home/ghdl/lib/
- export PYTHONPATH=/app/local/python3/
- PYTHONPATH=$PWD:$PYTHONPATH ML_SRC_DIR=$PWD python3 valid/rtl_unit_test.py --debug
non_regression_py3:
script:
- export PATH=/home/ghdl/bin:$PATH
- export LD_LIBRARY_PATH=/usr/local/lib/:/home/ghdl/lib/
- export PYTHONPATH=/app/local/python3/
# disabling long test (tanh, erf generation)
- PYTHONPATH=$PWD:$PYTHONPATH ML_SRC_DIR=$PWD python3 valid/non_regression.py --debug --exclude basic_hyperbolic_tangent_gen_test,basic_error_function_test
rtl_regression_py3:
script:
- export PATH=/home/ghdl/bin:$PATH
- export LD_LIBRARY_PATH=/usr/local/lib/:/home/ghdl/lib/
- export PYTHONPATH=/app/local/python3/
- PYTHONPATH=$PWD:$PYTHONPATH ML_SRC_DIR=$PWD python3 valid/hw_non_regression.py --debug
reduced_python2_test:
allow_failure: true
script:
- export PATH=/home/ghdl/bin:$PATH
- export LD_LIBRARY_PATH=/usr/local/lib/:/home/ghdl/lib/
- PYTHONPATH=$PWD:$PYTHONPATH ML_SRC_DIR=$PWD python2.7 valid/soft_unit_test.py
- PYTHONPATH=$PWD:$PYTHONPATH ML_SRC_DIR=$PWD python2.7 valid/rtl_unit_test.py
- PYTHONPATH=$PWD:$PYTHONPATH ML_SRC_DIR=$PWD python2.7 valid/non_regression.py
- PYTHONPATH=$PWD:$PYTHONPATH ML_SRC_DIR=$PWD python2.7 valid/hw_non_regression.py
determinism_py3:
script:
- export PATH=/home/ghdl/bin:$PATH
- export LD_LIBRARY_PATH=/usr/local/lib/:/home/ghdl/lib/
- PYTHONPATH=$PWD:$PYTHONPATH ML_SRC_DIR=$PWD python3 metalibm_functions/ml_exp.py --output test_exp.c
- cp test_exp.c test_exp0.c
- PYTHONPATH=$PWD:$PYTHONPATH ML_SRC_DIR=$PWD python3 metalibm_functions/ml_exp.py --output test_exp.c
- cp test_exp.c test_exp1.c
- diff test_exp0.c test_exp1.c
lint:
stage: test
allow_failure: true
script:
- pylint metalibm_core/
pages:
stage: deploy
only:
refs:
- main
script:
# setting environment so sollya import succeed
- export PATH=/home/ghdl/bin:$PATH
- export LD_LIBRARY_PATH=/usr/local/lib/:/home/ghdl/lib/
# auto doc
- ./doc/generate_doc.sh
- mkdir -p ./public/doc/
- cp -r ./doc/sphinx/build/html/* ./public/doc/
# soft coverage report
- mkdir -p ./public/perfs/
- PYTHONPATH=$PWD:$PYTHONPATH ML_SRC_DIR=$PWD python3 valid/soft_coverage_test.py --exclude libm,ml_tanh --report-only --output public/perfs/report.${CI_COMMIT_REF_NAME}.html
artifacts:
paths:
- public/
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。