Commit graph

19 commits

Author SHA1 Message Date
Oliver Smith
3030c00ba2
CI: check_mr_settings.py: fix check for same repo (!255)
Do not crash when a MR was made from the same repository, because the
"allow_maintainer_to_push" key does not exist in the GitLab API's
output. Check first if the "source_project_id" is the same as the
"target_project_id", and if it is, do not try to access
"allow_maintainer_to_push" at all.
2019-03-05 09:00:23 +01:00
Oliver Smith
e8a7926eb6
CI: check if maintainers can write to MR branch (!248)
Check if users activated the 'Allow commits from members who can merge
to the target branch' option in their MRs.

Add the "only" parameter to each job in .gitlab.yml, so the pipeline
can properly run in a "merge request specific context" and give us the
environment variable that contains the MR ID.
2019-02-28 17:54:27 +01:00
Oliver Smith
946328507b CI: add "ci:ignore-count" and "ci:skip-build" (!210)
Allow skipping the "too many packages changed" check by specifying
"ci:ignore-count" in the commit message.

Allow skipping the package build step by specifying "ci:skip-build"
in the commit message. In contrary to the usual "skip ci" method,
this will still run all the other CI checks.
2019-02-28 09:34:43 +01:00
Luca Weiss
156aac8199
testcases: support system-wide pmbootstrap install (!208)
Fix this error when installing pmbootstrap with pip and running the
pmaports.git testcases:

ERROR: 'pmbootstrap' is not a symlink to pmbootstrap.py
2019-02-27 09:43:18 +01:00
Oliver Smith
6d3d5723b6
CI: ignore _git packages in Qt version check
Do not fail the CI check with the _git packages that have been added
in the initial unity8 packaging.
2019-02-15 10:56:55 +01:00
Oliver Smith
158ac15143 CI: show meaningful error for outdated pmaports (!167)
When we bump the version in pmaports.cfg and the min. required pmaports
version in the pmbootstrap code, then forks of pmaports.git must be
rebased on pmaports.git master. Otherwise "pmbootstrap init" fails, and
because we have it set to quiet (so the output does not distract from
the interesting output if everything goes fine), there was no meaningful
error message yet.

Wrap the "pmbootstrap init" call and display a helpful message that
tells the user to rebase.
2019-01-22 07:47:12 +00:00
Oliver Smith
b95b73e26c
Update copyright to 2019
Happy new year! \o/
2019-01-02 09:29:47 +01:00
Oliver Smith
8d4232d1fd
test_aports_kde: test Qt version too and rename (!119)
Rename test_aports_kde.py to test_aports_framework_versions.py and
generalize all referenes in the code from "KDE frameworks" to
"frameworks". Check that all Qt packages have the same version, support
having the real version in _pkgver and pkgver=9999.

Scan all pmaports, not only the ones in the kde dir. Do not output all
packages of the "other" category anymore, the package count is enough.
2018-12-30 20:53:52 +01:00
Oliver Smith
ea3dc3d5a5
check_devices_in_wiki.py: update instructions
Explain that one needs to set "booting = yes" in the infobox, instead
of manually adding the device to the overview nowadays.
2018-12-17 08:21:54 +01:00
Oliver Smith
6179f45791
build_changed_aports: allow existing remote
In this CI test, we add the upstrem postmarketOS/pmaports.git
remote to the checked out git repository. Do not crash when it exists
already, so we don't need to remove it before each run when testing
locally.
2018-12-13 07:35:58 +01:00
Oliver Smith
683bc62f96
build_changed_aports: don't build deleted aports
Do not attempt to build deleted aports and fail on them. In the
overview of changed files, note which ones have been deleted.
2018-12-13 07:35:58 +01:00
Oliver Smith
c7b42e9ed6
Cosmetic: build_changed_aports: improve comments
* Move a comment that was after a line of code above that line. That
  line was very long compared to all others in the file, and now the
  file fits in 80 characters in every line, like PEP-8 recommends.
* Replace "folder" with "dir" in the comments (as I learned lately
  that "folder" is only a Windows concept).
2018-12-13 07:35:58 +01:00
Oliver Smith
0ab7ce3676
tests: check for deviceinfo_weston_pixman_type
Make sure this obsolete option won't be used by future devices.
2018-11-29 07:31:06 +01:00
Oliver Smith
ac6c0a2997
test_aports.py: disallow noarch device packages
Check if all device packages have the same arch in their device
APKBUILD as they have in their deviceinfo. And that they have
!archcheck set in the options.
2018-11-27 07:47:11 +01:00
Oliver Smith
36f4e86688 CI package build: don't buffer output and silent "git fetch" 2018-09-26 05:57:29 +00:00
Luca Weiss
25380ced2f Fix detecting changed aports 2018-09-25 05:29:15 +00:00
Oliver Smith
e9fd509914
Remove obsolete test case test_aportgen.py
This test case only makes sense in the pmbootstrap repository, and
we have it there already. In pmaports, we don't need to check if the
"aportgen" code is working - and to check the versions of the aports
we already have the test_upstream_compatibility case.
2018-09-22 11:24:13 +02:00
Oliver Smith
35a54fd1e8
CI: get pmbootstrap from master branch 2018-09-05 09:24:36 +02:00
Oliver Smith
0d5e2fae31
Add test cases and .gitignore
Copy all test cases from the pmbootstrap repository, that are actually
testing the aports. They were all adjusted to work nicely in this
repository, together with a brand new set of gitlab-ci configs.

This also includes the changes from this merge request, that had a
better detection of changed packages:
<https://gitlab.com/postmarketOS/pmbootstrap/merge_requests/1621>
2018-09-04 08:46:17 +02:00