Commit Graph

86 Commits

Author SHA1 Message Date
Đ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
Robert Lowry e450363b00 common/travis/docker.sh: add control variables
for more flexible local testing using existing tools
2019-10-21 18:32:28 +02:00
Piotr Wójcik 5cbf4e886d travis: lint license 2019-08-13 21:14:45 +02:00
Piotr Wójcik fcae38850b travis: do not ignore failure of all but last linted template 2019-07-17 08:52:11 +02:00
Juan RP 66d8cbf014 travis/build.sh: update bootstrap pkgs two times.
This is required because xbps might be updated the first time.
2019-06-16 22:00:18 +02:00
Juan RP 6dc1c6d8fb travis/build.sh: update bootstrap before building.
This should fix the recently failed build of elogind due
to xbps not updating revdeps of the build dependencies.

Signed-off-by: Juan RP <xtraeme@gmail.com>
2019-06-15 14:14:17 +02:00
Juan RP baa928b247 travis/build.sh: use -jX in xbps-src.
Do not rely on nproc(1) being available.

Signed-off-by: Juan RP <xtraeme@gmail.com>
2019-06-04 13:51:32 +02:00
maxice8 26865beb70 travis-ci: also show files for nonfree packages. 2019-04-16 16:40:43 -03:00
maxice8 8254bfd6b3 travis/show_files.sh: avoid useless use of cat 2019-04-15 12:18:00 -03:00