Commit f422821e authored by Maximilian Schanner's avatar Maximilian Schanner Committed by Maximilian Schanner
Browse files

test building and testing under debian

typo

python3
parent 791d9c42
......@@ -19,24 +19,28 @@ debian-job:
build-job:
stage: build
# apparently since conda 4.6, conda and pip get along just fine
image: debian:testing
script:
- apt-get update -y -qq
- apt-get install -y -qq python3-dev python3-pip
- pip install twine setuptools wheel
- python setup.py sdist bdist_wheel
- conda install curl
- python3 setup.py sdist bdist_wheel
- apt-get install -y -qq curl
# get the current package id
- "export ID=$(curl --request GET --header 'PRIVATE-TOKEN: 4xrVmceN2LRhSuF-HSbn' 'https://gitext.gfz-potsdam.de/api/v4/projects/1055/packages' | grep -P '(?<=.id.:)(\\d+)' -o )"
# remove the package, as we want a new build even if the version number did not change
- 'curl --request DELETE --header "PRIVATE-TOKEN: ${API_ACCES_TOKEN}" "https://gitext.gfz-potsdam.de/api/v4/projects/${CI_PROJECT_ID}/packages/$ID"'
# upload
- TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=gitlab-ci-token python -m twine upload --repository-url https://gitext.gfz-potsdam.de/api/v4/projects/${CI_PROJECT_ID}/packages/pypi dist/* --verbose
- TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=gitlab-ci-token python3 -m twine upload --repository-url https://gitext.gfz-potsdam.de/api/v4/projects/${CI_PROJECT_ID}/packages/pypi dist/* --verbose
test-job:
stage: test
image: debian:testing
script:
- conda install cartopy
- apt-get update -y -qq
- apt-get install -y -qq python3-dev python3-pip python3-cartopy
- pip install pymagglobal --extra-index-url https://public:5mz_iyigu-WE3HySBH1J@gitext.gfz-potsdam.de/api/v4/projects/1055/packages/pypi/simple
- python tests/run_tests.py
- python3 tests/run_tests.py
artifacts:
paths:
- ./docs/pic_mst.png
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment