Implement support for gitlab CI

This implements support for the gitlab CI system. Wiki, static analysis,
and build tests are implemented.
This commit is contained in:
Clayton Craft 2018-06-05 14:45:17 -07:00 committed by Clayton Craft
parent 0fdf27b207
commit 256914c1a0
No known key found for this signature in database
GPG key ID: D12B309C6C96EDE4
7 changed files with 171 additions and 14 deletions

View file

@ -46,6 +46,8 @@ sh_files="
./aports/main/postmarketos-ui-hildon/postmarketos-ui-hildon.post-install
./helpers/envsetup.sh
./helpers/envkernel.sh
./.gitlab/setup-pmos-environment.sh
./.gitlab/shared-runner-tests.sh
$(find . -path './aports/main/postmarketos-ui-hildon/*.sh')
$(find . -name '*.trigger')
$(find . -path './aports/main/devicepkg-dev/*.sh')
@ -64,7 +66,8 @@ done
cd "$DIR"/..
echo "Test with flake8: *.py"
echo "NOTE: Run 'autopep8 -ria $PWD' to fix code style issues"
py_files="$(find . -name '*.py')"
# Note: omitting a virtualenv if it is here (e.g. gitlab CI)
py_files="$(find . -not -path '*/venv/*' -name '*.py')"
_ignores="E501,E402,E722"
# shellcheck disable=SC2086
flake8 --exclude=__init__.py --ignore "$_ignores" $py_files