2021-11-23 00:30:03 +01:00
|
|
|
stages:
|
|
|
|
- test
|
|
|
|
- slither-analyzer
|
|
|
|
|
|
|
|
test:
|
2021-12-08 02:48:09 +01:00
|
|
|
image: registry.gitlab.com/grassrootseconomics/cic-base-images/ci-solc-python:latest
|
2021-11-23 00:30:03 +01:00
|
|
|
cache:
|
|
|
|
- key:
|
|
|
|
files:
|
|
|
|
- requirements.txt
|
|
|
|
- test_requirements.txt
|
|
|
|
paths:
|
|
|
|
- /root/.cache/pip
|
2021-12-08 02:46:25 +01:00
|
|
|
allow_failure: true
|
2021-11-23 00:30:03 +01:00
|
|
|
script:
|
|
|
|
- cd python
|
2021-12-08 02:46:25 +01:00
|
|
|
- export PYTHONPATH=.
|
|
|
|
- pip install --extra-index-url https://pip.grassrootseconomics.net:8433
|
|
|
|
--extra-index-url https://gitlab.com/api/v4/projects/27624814/packages/pypi/simple
|
|
|
|
-r requirements.txt -r test_requirements.txt
|
2021-11-23 00:30:03 +01:00
|
|
|
- bash run_tests.sh
|
|
|
|
|
|
|
|
|
|
|
|
slither-analize:
|
2021-12-08 02:48:09 +01:00
|
|
|
image: registry.gitlab.com/grassrootseconomics/cic-base-images/ci-solc-python:latest
|
2021-11-23 00:30:03 +01:00
|
|
|
script:
|
|
|
|
- pip install slither-analyzer
|
|
|
|
- slither solidity/
|