Commit Graph

22 Commits

Author SHA1 Message Date
Oliver Smith 672ebe797b
Revert "CI: download shellcheck (MR 2142)"
It's back in Alpine edge.

This reverts commit 3987d2f764.
2021-11-27 15:32:15 +01:00
Oliver Smith 3987d2f764
CI: download shellcheck (MR 2142)
Similar fix as in pmaports MR 2673.
2021-11-11 22:50:28 +01:00
Oliver Smith 8a371cd18f
CI: remove stages (MR 2080)
It's more annoying than useful to have to wait for the first stage
before the second stage (pytest) starts. I'd rather have the whole
pipeline run through quicker and see if there are python errors too even
if linting errors are not resolved yet.

In pmaports.git this makes more sense: there we have "lint" and "build"
and in the worst case "build" may take up to three hours. So it makes
sense to only start it if there are no cosmetic errors. But that's not
the case here.
2021-07-04 22:51:54 +02:00
Oliver Smith 6c2b72ca13
CI: .gitlab/vermin.sh -> .ci/vermin.sh (MR 2080) 2021-07-04 22:51:53 +02:00
Oliver Smith d7e22e4993
CI: check_mr_settings: use version from ci-common (MR 2080) 2021-07-04 22:51:53 +02:00
Oliver Smith d38bd6be2b
CI: drop support for cached venv + ci runner (MR 2080)
CI started failing with:
/builds/ollieparanoid/pmbootstrap/venv/bin/python3: No module named pytest

I've briefly tried to fix this with the existing scripts. However,
instead of investing more time into that, do the long overdue
refactoring of the scripts that involve dropping the venv logic and
support for a custon gitlab-ci-runner using some python docker image as
base. This configuration hasn't been used for a long time and is
probably broken anyway.

Refactor the logic to skip the qemu test case in gitlab CI by using
pytest markers. The new script is now similar to bpo's .ci/pytest.py.
2021-07-04 22:51:53 +02:00
Maxim Karasev 479b51cfb6
CI: use Alpine for testing (MR 2074) 2021-06-28 02:07:55 +03:00
Oliver Smith 8e3196a42a
CI: enforce python 3.6+ with vermin (MR 2002)
Make sure that features requiring a higher python version don't sneak in
by accident.

It would be nice to add this to test/static_code_analysis.sh, so it is
easy to run it locally. But vermin is not packaged in Alpine right now,
and given that this should be a rather rarer error, it doesn't seem
worth the effort right now.

Run silently by default and only in verbose mode if there are errors,
because if vermin isn't silent, it will not just point out errors, but
describe required python versions for everything it sees. (Copied that
part from the bpo CI script, where I had used it as pre-commit hook as
it was stuck on 3.5 for some time.)
2020-12-22 00:33:08 -08:00
Oliver Smith b366b5004f
CI: disable pmbootstrap-qemu-tests
The machine that was running them is currently broken.

Related: #1943
2020-07-11 00:08:57 +02:00
Clayton Craft fbdc68c3b6
ci: Update docker image to python 3.7, use generic python3
The python3 version in docker image may not be the same in the qemu
test runner VM image, so a more generic 'python3' is used when creating
the venv.
2020-02-08 16:07:31 -08:00
Oliver Smith f3dc6a55cf
gitlab-ci.yml: allow 'git config' cmds to fail
Two "su pmos -c 'git config --global user....'" commands were added to
the before_script in .gitlab-ci.yml. They work fine with the regular
gitlab runners, but fail with the custom gitlab runner that runs the
qemu test. Simply allow the command to fail, because it isn't needed on
the custom gitlab runner, as it doesn't run related tests.

Fixes: 16e2d3c77c ("gitlab-ci.yml: set git user/email (!1848)")
2020-01-24 22:41:23 +01:00
Daniele Debernardi 39f6dbef2e
gitlab-ci.yml: remove flake8/shellcheck (!1853) 2020-01-22 00:17:23 +01:00
Daniele Debernardi 3092fcaddb
gitlab-ci.yml: init pmbootstrap for static_code_analysis.sh (!1853) 2020-01-22 00:17:23 +01:00
Oliver Smith 16e2d3c77c
gitlab-ci.yml: set git user/email (!1848)
Prevent upcoming tests for "pmbootstrap pull" from failing, when trying
to create a git repository.
2020-01-19 20:37:46 +03:00
Steffen Pankratz 9dc326ecb8
CI: add 'merge request' settings check (!1805)
check_mr_settings.py taken from pmaports repository.

Signed-off-by: Steffen Pankratz <kratz00@gmx.de>
2019-08-06 10:22:13 +02:00
Oliver Smith 3ce00de710 Move aports into own repository (pmaports) 2018-09-05 05:57:38 +00:00
Oliver Smith d53550cdc6 pmb: give loop module time to initialize 2018-08-27 21:14:48 +00:00
Oliver Smith 0e2c7507cd
Wiki CI: require all devices to be booting
In gitlab, there is no extra CI job running for commits in a merge
request (MR). This means, we can't run different code in a MR against
"master".

So instead of only checking whether all devices are booting if there's
a MR against master, always perform this check.

I've edited the message slightly, so it's clear that it's only required
to have the devices booting when making a merge request against master.
2018-07-22 23:19:02 +02:00
clayton craft 023fbf53dc gitlab ci: restructure 'tests' stage 2018-07-08 23:06:00 +00:00
Oliver Smith f6dcfbfe56 Use Alpine's QEMU rather than host system QEMU (v2) 2018-07-06 19:50:59 +00:00
Clayton Craft c8e0ff3228
ci: limit running of qemu tests
This uses a variable configured in the gitlab project [settings->CI/CD->Variables]
to restrict when the qemu job will run. This should prevent the job from running
on repo forks where an appropriate runner has not been configured/registered.

Note that if this variable is set in a repo where there is no runner registered to
run qemu, then any CI jobs in that repo will ultimately fail the qemu tests since
no runner will be found.
2018-06-30 09:23:17 -07:00
Clayton Craft 256914c1a0
Implement support for gitlab CI
This implements support for the gitlab CI system. Wiki, static analysis,
and build tests are implemented.
2018-06-29 23:16:41 -07:00