before_script:
- test -w "${CCACHE_DIR}" && export PATH="/usr/lib/ccache:${PATH}"
- test -n "${OOT_BUILD_WORKSPACE}" && mkdir "${OOT_BUILD_WORKSPACE}" && cd "${OOT_BUILD_WORKSPACE}"
- - pip3 install pytest requests || pip install pytest requests || true
script:
- *configure
- make depend | grep "error:" && exit 1
before_script:
- *setup_interfaces
- *setup_softhsm
- - pip3 install pytest requests || pip install pytest requests || true
script:
- ( cd bin/tests/system && make -j${TEST_PARALLEL_JOBS:-1} -k test V=1 )
- test -s bin/tests/system/systests.output
needs:
- job: autoreconf
artifacts: true
- before_script:
- - pip3 install flake8
script:
- *configure
- flake8 --max-line-length=80 $(git ls-files '*.py' | grep -v 'ans\.py')
needs:
- job: autoreconf
artifacts: true
- before_script:
- - pip3 install pylint
- - PYTHONPATH="$PYTHONPATH:$CI_PROJECT_DIR/bin/python"
- - pip3 install pytest requests || pip install pytest requests
script:
- *configure
+ - PYTHONPATH="$PYTHONPATH:$CI_PROJECT_DIR/bin/python"
- pylint --rcfile $CI_PROJECT_DIR/.pylintrc $(git ls-files '*.py' | grep -v 'ans\.py')
only:
- merge_requests