Skip to content
Snippets Groups Projects
Commit 27e69cf9 authored by Thibault Allenet's avatar Thibault Allenet
Browse files

perform tests in script

parent 732506d3
No related branches found
No related tags found
No related merge requests found
......@@ -16,20 +16,7 @@ release:pip:ubuntu:
- set -x
- python --version
- python -m pip wheel -w wheelhouse .
- set +x
after_script:
- !reference [.ubuntu:download:repositories, before_script]
- set -x
- echo "After script"
# - export DEPS_NAMES=("aidge_core" "aidge_backend_cpu")
# - >
# for DEP_NAME in $DEPS_NAMES; do
# echo "current dep $DEP_NAME"
# cd $DEP_NAME
# pip install . -v
# cd ..
# done
- echo "Tests"
- export WHL_NAME=$(find . -name "$CI_PROJECT_NAME*.whl")
- pip install $WHL_NAME
- cd ..
......@@ -48,6 +35,36 @@ release:pip:ubuntu:
- pytest $PATH_TEST
- set +x
# after_script:
# - !reference [.ubuntu:download:repositories, before_script]
# - set -x
# - echo "After script"
# # - export DEPS_NAMES=("aidge_core" "aidge_backend_cpu")
# # - >
# # for DEP_NAME in $DEPS_NAMES; do
# # echo "current dep $DEP_NAME"
# # cd $DEP_NAME
# # pip install . -v
# # cd ..
# # done
# - export WHL_NAME=$(find . -name "$CI_PROJECT_NAME*.whl")
# - pip install $WHL_NAME
# - cd ..
# - ls .
# ############################################################################
# # In order to perform the test on the installed package, not on the source code, change the repo name with mv
# # https://stackoverflow.com/questions/56908227/how-to-test-python-wheels-on-ci
# ############################################################################
# - rm -r src
# - mv $CI_PROJECT_NAME src
# - ls src
# ############################################################################
# - cd toto/$CI_PROJECT_NAME/unit_tests
# - export PATH_TEST=$(pwd)
# - cd ../../../..
# - pytest $PATH_TEST
# - set +x
# deploy:pip:ubuntu :
# needs: release:pip:ubuntu
# stage: deploy
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment