funga

Signer and keystore daemon and library for cryptocurrency software development
Log | Files | Refs | README | LICENSE

commit 9d83f9a57461070d51fe8b786af519a46ac892ed
parent d06e277a6bbc45003b6d596725665c1b4446ab38
Author: nolash <dev@holbrook.no>
Date:   Wed, 15 Sep 2021 20:47:38 +0200

Merge branch 'master' of gitlab.com:chaintool/crypto-dev-signer

Diffstat:
A.gitlab-ci.yml | 45+++++++++++++++++++++++++++++++++++++++++++++
Mrun_tests.sh | 4+++-
2 files changed, 48 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml @@ -0,0 +1,45 @@ +stages: +- build +- test +#running the bash script in test + +build_and_push: + image: registry.gitlab.com/grassrootseconomics/cic-base-images:python-3.8.6-dev + stage: build + variables: + #CI_DEBUG_TRACE: "true" + CIC_PACKAGE_REGISTRY_PROJECT_ID: 27624814 + script: + #- python -m pip install --upgrade setuptools wheel pip twine semver + - python -m pip install --extra-index-url https://gitlab.com/api/v4/projects/27624814/packages/pypi/simple --extra-index-url https://pip.grassrootseconomics.net:8433 install -r requirements.txt + - python setup.py sdist bdist_wheel + - TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=gitlab-ci-token python -m twine upload --skip-existing --repository-url ${CI_API_V4_URL}/projects/${CIC_PACKAGE_REGISTRY_PROJECT_ID}/packages/pypi dist/* + # Below are the built dependencies + #- TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=gitlab-ci-token python -m twine upload --repository-url ${CI_API_V4_URL}/projects/${CIC_PACKAGE_REGISTRY_PROJECT_ID}/packages/pypi /tmp/wheelhouse/* + only: + - master + - daven/* + +tests: + image: registry.gitlab.com/grassrootseconomics/cic-base-images:python-3.8.6-dev + stage: test + variables: + #CI_DEBUG_TRACE: "true" + CIC_PACKAGE_REGISTRY_PROJECT_ID: 27624814 + script: + - ls + - python -m pip install --extra-index-url https://gitlab.com/api/v4/projects/27624814/packages/pypi/simple --extra-index-url https://pip.grassrootseconomics.net:8433 install -r requirements.txt -r test_requirements.txt -r sql_requirements.txt + - python -m pip freeze + - ls + - > + if [ -z $PYTHONPATH ]; then + export PYTHONPATH=. + else + export PYTHONPATH=$PYTHONPATH:. + fi + - PYTHONPATH=. bash run_tests.sh + + only: + - master + - daven/0.0.0 + diff --git a/run_tests.sh b/run_tests.sh @@ -2,7 +2,9 @@ set -e set -x -#export PYTHONPATH=${PYTHONPATH:.} +default_pythonpath=$PYTHONPATH:. +export PYTHONPATH=${default_pythonpath:-.} +>&2 echo using pythonpath $PYTHONPATH for f in `ls tests/*.py`; do python $f done