Commit graph

116 commits

Author SHA1 Message Date
mhmdanas
9df91d9a2b common/travis: make check-install use clean rootdir.
The CI has `base-chroot` installed, but sometimes this script would try
to install `base-system,` causing conflicts. This commit fixes that
issue by using a brand-new rootdir.
2023-04-11 16:16:00 -04:00
classabbyamp
89e672db3d
common/travis/set_mirror.sh: Revert "switch to repo-de temporarily"
This reverts commit 836b6c484e,
as the repo-fi sync issue has now been resolved
2023-04-02 15:34:14 -04:00
classabbyamp
836b6c484e
common/travis/set_mirror.sh: switch to repo-de temporarily 2023-04-02 04:40:28 -04:00
classabbyamp
89c8582509 common/travis/check-install.sh: also fail on other failure modes
11 = EINVAL, which can come from conflict check and a few other places
2023-03-15 16:13:33 -04:00
zlice
12e6985c34 common: cleanup trailing whitespaces 2023-02-07 03:26:02 -05:00
classabbyamp
3c75453c0c common/travis/: add bootstrap repo to CI scripts 2023-02-03 20:32:46 -06:00
Piotr Wójcik
f3520b043f common/travis/xpkgdiff.sh: fix on cross build
xbps-query in this script needs a target architecture specified
2023-01-17 21:55:29 +01:00
Piotr Wójcik
f5a960da8f .github/workflows: compare PR branch to master
Since 4410de52c1 we fetch all origin branches, and FETCH_HEAD can point
elsewhere
2023-01-10 18:07:35 -05:00
mobinmob
574d033a9f spdx-licenses-list: update to 3.19.
Also:
- update common/travis/license.lst.
2023-01-10 12:05:33 +07:00
classabbyamp
c1dc168f80 common/travis/changed_templates.sh: change branch age check for treeless
small logic change because we now have the complete commit history instead
of just `--depth=200`. This preserves the 200 commit limit with a slightly-
enhanced error message (wording clarified and it now shows up as an error
annotation)
2022-12-21 01:15:15 -05:00
classabbyamp
7249e827a1 common/travis/fetch_upstream.sh: remove now-unnecessary script
no longer needed now that the checkout script fetches the entire
commit history of master and the PR branch
2022-12-21 01:15:15 -05:00
classabbyamp
8fe8739a23 common/: remove PATH adds from CI scripts
they are now specified in the workflow file
2022-10-25 14:23:46 -04:00
Đoàn Trần Công Danh
28c485ecfc changed_templates: explain what has been done 2022-09-17 23:32:50 +07:00
Đoàn Trần Công Danh
7510b96218 common: simplify logic to find git
From chroot-git 2.33.1, we always have an executable named git
for other build infrastructure and lints.

Let's remove the shenanegan to find which git to be used, prepend the
path to chroot-git's git into $PATH, and let's the shell call the
correct git for us instead.
2022-09-17 23:32:50 +07:00
classabbyamp
9d8a6f6c25 common/travis/xpkgdiff.sh: use newly-added arguments
it works without this, but it uses repo-default by default, so this
should maybe speed some things up.
2022-09-06 11:27:48 -04:00
mobinmob
526c827bf5 spdx-licenses-list: update to 3.18.
Also:
- update common/travis/license.lst.
2022-08-21 00:00:52 +02:00
Duncaen
70d5c4a88d
common/travis: mirror replace pattern 2022-08-05 22:59:41 +02:00
Duncaen
d331d585fd
common/travis: use https for repo-ci.voidlinux.org
This reverts commit 2233ca2edf.

We now have a cert on repo-ci and http to https redirects so that
each request results in a redirect.
2022-08-05 22:51:47 +02:00
classabbyamp
a2ffebc11e common/travis: switch CI scripts to repo-ci 2022-06-23 00:54:17 -05:00
mhmdanas
9597880852 spdx-licenses-list: update to 3.17. 2022-06-03 18:49:59 +02:00
Michael Aldridge
2233ca2edf commont/travis: Fix CI mirror 2022-05-27 18:02:22 -05:00
Michael Aldridge
3a5377265a various: change default repo to repo-default.voidlinux.org 2022-05-27 17:24:24 -05:00
classabbyamp
1c953b4173 common/travis/xpkgdiff.sh: add CI script to compare pkgs with xpkgdiff 2022-05-07 22:42:44 +02:00
0x5c
cc27e8e6f7 common/travis/xlint.sh: print Github annotations
Turns xlint, version lint, and commit lint messages into warning or error
annotaions. All are printed with special highlighting in the action log and
summary. Xlint and version lint annotations are shown inline in the changes tab
and commit view. Annotations without line number are shown at line 1.
2022-05-05 21:34:11 +02:00
classabbyamp
fab132bd11 common/travis/fetch_upstream.sh: fix checkout dir 2022-04-26 19:56:22 +02:00
classabbyamp
e4cc32f921 common/travis/fetch_upstream.sh: fix CI for new git version 2022-04-16 13:51:12 -05:00
Michal Vasilek
769ea65a5e xbps-src: add strict mode 2022-04-07 20:27:41 +02:00
mobinmob
d262d0cd38 spdx-licenses-list: update to 3.16.
Also:
- sync common/travis/license.lst.
2022-02-14 21:19:14 +01:00
Gonzalo Tornaría
92720ddd33 Fix CI since github no longer accepts git:// protocol
As of today, everything fails on CI with:

```
Run common/travis/fetch_upstream.sh
Fetching upstream...
fatal: remote error:
  The unauthenticated git protocol on port 9418 is no longer supported.
Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information.
Error: Process completed with exit code 128.
```

Switching `git://` to `https://` should fix this.
2022-01-11 16:44:57 +01:00
mobinmob
0f6b6e5c8b spdx-licenses-list: update to 3.15.
Also:
- update common/travis/license.lst.
2021-11-18 18:35:02 +01:00
Đoàn Trần Công Danh
2380f8cb1a changed_templates: use $GIT_CMD instead of git everywhere 2021-10-27 07:37:34 +07:00
Michael Aldridge
853f362b05 common/travis: Update mirror URL 2021-10-03 17:14:53 -05:00
mobinmob
0ef3f58606 spdx-licenses-list: update to 3.14.
Also fix license (thanks @paper42).
2021-08-11 23:24:25 +02:00
Đoàn Trần Công Danh
4b009994e5 changed_templates: exit early if no merge-base could be found
GitHub Action and fetch_upstream.sh script limits fetch depth to 200.
With such depth, should the PR was based on very old tree, we couldn't
find the merge-base to diff again.

In theory, we could replace actions/checkout and fetch_upstream.sh to
fetch more than 200 depth. However, there isn't much gain from such
change and it will increase the time to fetch upstream for all PR.
Arguably, such problematic PR couldn't be built because other steps
would build changed packages' dependencies, too.

Let's complain and exit early instead.
2021-06-01 08:31:00 +07:00
Đoàn Trần Công Danh
987dfd294f changed_templates: use current tip for non-merge commit
Some people uses this scripts to detect changes locally.
Let's not break their script.
2021-06-01 08:31:00 +07:00
Đoàn Trần Công Danh
46e6063606 CI: make lint-commits part of xlint.sh
* CI will stop whenever a step is failing.
* We always want to enforce commit message lint
* `xlint` is reporting some false positive for license with " WITH "

Let's make the lint-commits part of xlint.sh
2021-05-31 17:47:56 +07:00
Đoàn Trần Công Danh
7f8e1f56fa ci/changed-templates: use tip of feature branch as tip
The HEAD given by GitHub Action is always non-fast-forward merge commit.
In the next change, lint-commits will use the tip from
"changed_templates.sh".

Let pick the correct tip for interrogation.
2021-05-31 17:47:56 +07:00
Piotr Wójcik
c0331b57eb common: add lint-version-change 2021-05-27 21:18:38 +02:00
Piotr Wójcik
2dbe48e260 common/changed_templates.sh: store merge-base in file 2021-05-27 21:18:38 +02:00
Piotr Wójcik
d06bb7e98f workflows: fetch xbps for lint step 2021-05-27 21:18:38 +02:00
mobinmob
6966661b52 spdx-licenses-list: update to 3.13. 2021-05-21 12:43:44 -03:00
Piotr Wójcik
aa83569fcb xbps-src: add make_check=ci-skip 2021-04-26 18:49:15 +02:00
mobinmob
bd8669126b spdx-licenses-list: update to 3.12. 2021-03-11 12:22:51 -05:00
mobinmob
14280bfad9 spdx-licenses-list: update to 3.11.
Closes: #27509 [via git-merge-pr]
2020-12-29 22:31:01 -08:00
Érico Rolim
b6e7863cbd .github/workflows: add script to check that packages can still be
installed.

This will allow us to confirm the repository's staging state in CI.
2020-12-23 16:14:53 -03:00
Érico Rolim
2c70789fe2 common/travis/show_files: don't error out when subpkg doesn't exist. 2020-12-14 18:54:09 -03:00
Érico Rolim
b8044ce629 common/travis/build.sh: add argument for running tests.
Also use nproc(1) directly and remove FTP_RETRIES.
2020-12-14 00:18:04 -03:00
Érico Rolim
8dfcf8b7a0 common/travis/fetch-xtools: make it work inside masterdir. 2020-12-14 00:18:04 -03:00
Érico Rolim
d6c8f1b99e Disable Travis CI.
- Remove .travis.yml, common/travis/docker.sh.
- Change references to travis to be more generic.
- Manual.md: Orient against using CI logs in broken= or nocross=.
2020-11-21 00:11:30 +01:00
Piotr Wójcik
749e6cf4ba travis/show_files.sh: do not show files if build failed 2020-08-31 09:11:35 +02:00