Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects

adding resource group.

Merged Diego MENDEZ requested to merge bugfix/ci_job_collision into develop
Compare and Show latest version
3 files
+ 16
10
Compare changes
  • Side-by-side
  • Inline
Files
3
+ 10
8
@@ -45,12 +45,13 @@ run-test-job:
- pip install -r "${PROJ_DIR}/plugins/netbox-cert-plugin/tests/requirements.e2e.txt"
- pip install -r "${PROJ_DIR}/tests/requirements.e2e.txt"
script:
- env HOST="${TEST_HOST}" PORT="${TEST_PORT}" API_KEY="$API_KEY"
pytest -s --junit-xml=tests-report-netbox-rps-plugin.xml "${PROJ_DIR}/plugins/netbox-rps-plugin/tests/"
- env HOST="${TEST_HOST}" PORT="${TEST_PORT}" API_KEY="$API_KEY"
pytest -s --junit-xml=tests-report-netbox-cert-plugin.xml "${PROJ_DIR}/plugins/netbox-cert-plugin/tests/"
- env HOST="${TEST_HOST}" PORT="${TEST_PORT}" API_KEY="$API_KEY"
pytest -s --junit-xml=tests-report-netbox-dist-plugin.xml "${PROJ_DIR}/tests/e2e/"
# - env HOST="${TEST_HOST}" PORT="${TEST_PORT}" API_KEY="$API_KEY"
# pytest -s --junit-xml=tests-report-netbox-rps-plugin.xml "${PROJ_DIR}/plugins/netbox-rps-plugin/tests/"
# - env HOST="${TEST_HOST}" PORT="${TEST_PORT}" API_KEY="$API_KEY"
# pytest -s --junit-xml=tests-report-netbox-cert-plugin.xml "${PROJ_DIR}/plugins/netbox-cert-plugin/tests/"
# - env HOST="${TEST_HOST}" PORT="${TEST_PORT}" API_KEY="$API_KEY"
# pytest -s --junit-xml=tests-report-netbox-dist-plugin.xml "${PROJ_DIR}/tests/e2e/"
- ls
after_script:
- deactivate
- rm -rf "${PROJ_DIR}/plugins/venv"
@@ -68,8 +69,9 @@ run-robot-test-job:
- source "${PROJ_DIR}/plugins/venv/bin/activate"
- docker build -t robotframework:latest ./tests/docker/
script:
- docker run --rm -v ${PROJ_DIR}:/project --network "host" robotframework:latest bash -c
"robot -v HOST:"${TEST_HOST}" -v PORT:"${TEST_PORT}" -v API_TOKEN:"$API_KEY" --outputdir /project/reports /project/tests/robot/"
# - docker run --rm -v ${PROJ_DIR}:/project --network "host" robotframework:latest bash -c
# "robot -v HOST:"${TEST_HOST}" -v PORT:"${TEST_PORT}" -v API_TOKEN:"$API_KEY" --outputdir /project/reports /project/tests/robot/"
- ls
after_script:
- sudo chmod -R 777 reports
- docker image rm robotframework:latest --force
Loading