Skip to content
Snippets Groups Projects
Commit 799ea635 authored by Jiří Rája's avatar Jiří Rája 🔥
Browse files

Merge branch 'fix-readme' into 'master'

Update CI and fix a typo

See merge request cryton/cryton-modules!35
parents 9a0944e4 8d9fd90c
No related branches found
No related tags found
No related merge requests found
image: python:latest
image: registry.gitlab.ics.muni.cz:443/cryton/configurations/ci-base:latest
stages:
- module_tests
- test
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
POETRY_VIRTUALENVS_IN_PROJECT: "true"
POETRY_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pypoetry"
cache:
paths:
- .cache/pip
- .cache/pypoetry
- .venv
before_script:
- python --version
- pip install poetry==1.1.15
- git clone https://gitlab.ics.muni.cz/cryton/cryton-worker.git
- cd cryton-worker
- poetry install
- export $(grep -v '^#' .env | xargs)
mod_cmd:
stage: module_tests
stage: test
script:
- poetry run pip install -r ../modules/mod_cmd/requirements.txt
- poetry run pytest ../modules/mod_cmd/
......@@ -32,7 +21,7 @@ mod_cmd:
- changes: [ modules/mod_cmd/mod.py, modules/mod_cmd/test_mod.py ]
mod_medusa:
stage: module_tests
stage: test
script:
- poetry run pip install -r ../modules/mod_medusa/requirements.txt
- poetry run pytest ../modules/mod_medusa/
......@@ -41,7 +30,7 @@ mod_medusa:
- changes: [ modules/mod_medusa/mod.py, modules/mod_medusa/test_mod.py ]
mod_msf:
stage: module_tests
stage: test
script:
- poetry run pip install -r ../modules/mod_msf/requirements.txt
- poetry run pytest ../modules/mod_msf/
......@@ -50,7 +39,7 @@ mod_msf:
- changes: [ modules/mod_msf/mod.py, modules/mod_msf/test_mod.py ]
mod_nmap:
stage: module_tests
stage: test
script:
- poetry run pip install -r ../modules/mod_nmap/requirements.txt
- poetry run pytest ../modules/mod_nmap/
......@@ -59,7 +48,7 @@ mod_nmap:
- changes: [ modules/mod_nmap/mod.py, modules/mod_nmap/test_mod.py ]
mod_script:
stage: module_tests
stage: test
script:
- poetry run pip install -r ../modules/mod_script/requirements.txt
- poetry run pytest ../modules/mod_script/
......@@ -68,7 +57,7 @@ mod_script:
- changes: [ modules/mod_script/mod.py, modules/mod_script/test_mod.py ]
mod_wpscan:
stage: module_tests
stage: test
script:
- poetry run pip install -r ../modules/mod_wpscan/requirements.txt
- poetry run pytest ../modules/mod_wpscan/
......
......@@ -20,4 +20,4 @@ For more information see the [documentation](https://cryton.gitlab-pages.ics.mun
## Contributing
Contributions are welcome. Please **contribute to the [project mirror](https://gitlab.com/cryton-toolset)** on gitlab.com.
For more information see the [contribution page](https://cryton.gitlab-pages.ics.muni.cz/cryton-documentation/contribution-guide/).
For more information see the [contribution page](https://cryton.gitlab-pages.ics.muni.cz/cryton-documentation/latest/contribution-guide/).
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