Commit 05b9ce51 authored by Maximilian Schanner's avatar Maximilian Schanner
Browse files

fix hardcoded id

parent c2db83e6
......@@ -15,7 +15,7 @@ build-job:
- 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: ${API_ACCES_TOKEN}' 'https://gitext.gfz-potsdam.de/api/v4/projects/1055/packages' | grep -P '(?<=.id.:)(\\d+)' -o )"
- "export ID=$(curl --request GET --header 'PRIVATE-TOKEN: ${API_ACCES_TOKEN}' 'https://gitext.gfz-potsdam.de/api/v4/projects/${CI_PROJECT_ID}/packages' | grep -P '(?<=.id.:)(\\d+)' -o )"
# remove the package, as we want a new build even if the version number did not change
- 'echo $ID'
- 'curl --request DELETE --header "PRIVATE-TOKEN: ${API_ACCES_TOKEN}" "https://gitext.gfz-potsdam.de/api/v4/projects/${CI_PROJECT_ID}/packages/$ID"'
......@@ -30,10 +30,10 @@ test-conda:
image: continuumio/miniconda3
script:
- conda install cartopy
- pip install pymagglobal --extra-index-url https://public:5mz_iyigu-WE3HySBH1J@gitext.gfz-potsdam.de/api/v4/projects/1055/packages/pypi/simple
- pip install pymagglobal --extra-index-url https://public:5mz_iyigu-WE3HySBH1J@gitext.gfz-potsdam.de/api/v4/projects/${CI_PROJECT_ID}/packages/pypi/simple
- python3 tests/run_tests.py
- pip uninstall -y pymagglobal
- pip install pymagglobal[tests] --extra-index-url https://public:5mz_iyigu-WE3HySBH1J@gitext.gfz-potsdam.de/api/v4/projects/1055/packages/pypi/simple
- pip install pymagglobal[tests] --extra-index-url https://public:5mz_iyigu-WE3HySBH1J@gitext.gfz-potsdam.de/api/v4/projects/${CI_PROJECT_ID}/packages/pypi/simple
- python3 tests/run_tests.py
test-job:
......@@ -41,10 +41,10 @@ test-job:
script:
- 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
- pip install pymagglobal --extra-index-url https://public:5mz_iyigu-WE3HySBH1J@gitext.gfz-potsdam.de/api/v4/projects/${CI_PROJECT_ID}/packages/pypi/simple
- python3 tests/run_tests.py
- pip uninstall -y pymagglobal
- pip install pymagglobal[tests] --extra-index-url https://public:5mz_iyigu-WE3HySBH1J@gitext.gfz-potsdam.de/api/v4/projects/1055/packages/pypi/simple
- pip install pymagglobal[tests] --extra-index-url https://public:5mz_iyigu-WE3HySBH1J@gitext.gfz-potsdam.de/api/v4/projects/${CI_PROJECT_ID}/packages/pypi/simple
- python3 tests/run_tests.py
artifacts:
paths:
......@@ -59,7 +59,7 @@ pages:
script:
- 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
- pip install pymagglobal --extra-index-url https://public:5mz_iyigu-WE3HySBH1J@gitext.gfz-potsdam.de/api/v4/projects/${CI_PROJECT_ID}/packages/pypi/simple
- apt-get install -y -qq python3 sphinx python3-sphinx-argparse
- sphinx-build -b html docs public
artifacts:
......
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