Commit Graph

94 Commits

Author SHA1 Message Date
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
mobinmob c96a7e345a common/travis/license.lst: update to 3.10 2020-08-05 19:24:33 +02:00
Đoàn Trần Công Danh f5417b7b99 travis/changed_templates: correct left tree-ish
From b881f32687 (travis/changed_templates: filter by git itself,
2020-05-23), we replaced git-diff(1) with git-diff-tree(1).

The change wasn't equivalence, though.
We used to compare between merge-base of FETCH_HEAD and HEAD.
From that commit, we started to compare FETCH_HEAD and HEAD instead.

Fix them by changing left tree-ish to the merge-base.
2020-06-10 16:40:39 +00:00
Đoàn Trần Công Danh b881f32687 travis/changed_templates: filter by git itself
- Use plumbing git-diff-tree(1) instead of porcelain git-diff(1)
- Disable rename detection, gains some speed up and fix missing template
  with name-status Renamed and Copied.
- Use "--diff-filter" to filter by Git itself.
- Tell Git to only check 'srcpkgs/*/template', this glob will only look
  into template file inside direct sub-directory of srcpkgs
- With all of those options, we don't need a grep and a pipe
2020-05-31 02:10:29 +00:00
Juan RP 9121f0d024
travis/prepare.sh: don't set XBPS_{PKG,REPO}_COMPTYPE.
Use xbps defaults.
2020-03-03 10:49:35 +01:00
Piotr Wójcik 588e8cdb7b common: retry ftp download during CI 2020-02-11 23:05:31 +01:00
Piotr Wójcik 316d0380c2 common/travis/license.lst: update to 3.8 2020-02-11 19:57:51 +01:00
Juan RP a540b683ad
travis/prepare: use lz4 compression type for pkgs/repos.
lz4 is the fastest one available with libarchive, and
size is not the most important thing in travis.
2020-01-05 18:36:44 +01:00
Juan RP fde04ae647 travis/build.sh: xbps-src takes care of everything now.
Also this file does not contain any bashism, so use /bin/sh.
2020-01-05 10:44:56 +01:00
Juan RP 81b2dc578e travis/build.sh: simplify logic 2020-01-05 10:44:56 +01:00
Juan RP 8e0644f7cf travis/build.sh: use -E (and get rid of -f) while building base-chroot. 2020-01-05 10:44:56 +01:00
Juan RP 34d6624a5c travis/build.sh: perform sysup before installing base-chroot. 2020-01-05 10:44:56 +01:00
Juan RP 05980fbaba travis/build.sh: also use xbps.d repos, to resolve missing deps. 2020-01-05 10:44:56 +01:00
Juan RP 5b938c9c0c travis/build.sh: local repo path v2 2020-01-05 10:44:56 +01:00
Juan RP 186e9f3025 travis/build.sh: fix repo path, use -H. 2020-01-05 10:44:56 +01:00
Juan RP 7a217ffadd travis/build.sh: install base-chroot and remove autodeps. 2020-01-05 10:44:56 +01:00
Juan RP 9703739139 travis/build.sh: always update base-chroot in masterdir. 2020-01-05 10:44:56 +01:00
Juan RP ebb1ff140a travis/build.sh: fix xbps-src opts for ethereal. 2020-01-05 10:44:56 +01:00
Juan RP 958e3ead5d travis: rebuild base-chroot via build.sh not prepare.sh. 2020-01-05 10:44:56 +01:00
Juan RP 7b11d13c38 travis: always build a recent `base-chroot` pkg 2020-01-05 10:44:56 +01:00
Juan RP 8b21a5a74d travis: some tweaks for base-chroot-v2:
- no need to perform `boostrap-update` anymore, xbps-src does it now.
- don't set useless values to `etc/conf`.
2020-01-05 10:44:56 +01:00
Juan RP e4a5beb116 travis: update set_mirror.sh for `etc/xbps.d`. 2020-01-05 10:44:56 +01:00
Leah Neukirchen 9dba2a6063 fetch-xtools.sh: update xtools link. 2019-12-25 15:30:03 +01:00