Commit Graph

34 Commits

Author SHA1 Message Date
Phaedrus Leeds
179b45928c CI: Add 1.12 branch 2021-10-19 10:57:06 -07:00
Alexander Larsson
b4e838a0fd Drop old-glib ci test as ubuntu 16.04 is no longer available
As per https://github.com/actions/virtual-environments/issues/3287
the support for ubuntu-16.04 stopped working on september 20:th, so
our CI job stopped starting.
2021-09-23 13:25:02 +02:00
Alexander Larsson
b6d5e20857 CI: Add mono apt repo to fix build
For whatever reason parts of mono is installed, but the repo is not
configured so there is a version conflict on update:

libglib2.0-cil is already the newest version (2.12.45-0xamarin19+ubuntu1604b1).
libglib2.0-cil set to manually installed.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libglib2.0-cil-dev : Depends: libglib2.0-cil (= 2.12.10-6) but 2.12.45-0xamarin19+ubuntu1604b1 is to be installed
E: Unable to correct problems, you have held broken packages.
2021-06-01 10:54:53 +02:00
Simon McVittie
9a35bbc91c Merge tag '1.10.2', omitting changes in po/
Release 1.10.2

Git-EVTag-v0-SHA512: 849c1f828b993144d61353fc8f233d5f62ef773d4ded35e406797260b55a371cd7dc77cba1a4de912e05e9530f40adf9963789ac896ed3fe19ebce352031b85b
2021-04-26 12:21:28 +01:00
Simon McVittie
cb47d83b72 run: Add option to share /dev/shm between instances of an app-ID
Similar to /tmp, applications might well use /dev/shm as an IPC
rendezvous between instances, which wouldn't have worked without
--device=shm until now.

Because /dev/shm has specific characteristics (in particular it's
meant to always be a tmpfs), we offload the actual storage into a
subdirectory of the real /dev/shm. Because /dev/shm is a shared
directory between all uids, we have to be extra-careful how we
do this, which is why the test coverage here is important.

This is done on an opt-in basis because of its extra complexity.

Signed-off-by: Simon McVittie <smcv@collabora.com>
2021-04-16 08:57:20 +02:00
Phaedrus Leeds
2ebc79b38e CI: Add 1.10 branch 2021-02-19 09:16:10 +01:00
Alexander Larsson
d5de05b608 CI: Use the new --enable-asan 2021-01-14 12:43:46 +01:00
Alexander Larsson
500af2d0f6 CI: Don't build ostree (ppa is new enough now) 2020-12-21 13:46:11 +01:00
Phaedrus Leeds
b663394a4d Remove LGTM.com infra
We're switching to a GitHub action with the same underlying technology;
see the previous commit.
2020-12-21 09:08:13 +01:00
Phaedrus Leeds
f47274d38b CI: Add action for CodeQL analysis
Use an Action instead of LGTM.com, as suggested here:
https://github.com/flatpak/flatpak/pull/3970#issuecomment-747658238

Re-use the clang build action for resource efficiency.
2020-12-21 09:08:13 +01:00
Philip Withnall
3a83cc3df4 check: Bump OSTree dependency to v2020.8
This avoids having to download `master` and then check out a specific
commit. v2020.8 includes the commit which we were previously building.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
2020-12-15 09:57:41 +00:00
Philip Withnall
1b391485f6 check: Limit clone depth for clones done as part of CI builds
There’s no need to fetch the entire git history for OSTree or malcontent
for each CI job. Do shallow clones and don’t fetch tags. This reduces
the bandwidth requirement for clones in a CI job by roughly a factor of
8.5 (from 19.5MB to 2.3MB)

See https://tecnocode.co.uk/2020/07/09/easily-speed-up-ci-by-reducing-download-size/

This is slightly complicated by the fact that OSTree is currently being
built from a relatively-recent git commit. Once the flatpak CI can
depend on a tagged OSTree release (say, 2020.8),
```
--branch master --shallow-since 2020-10-27
```
can be changed to
```
--branch v2020.8 --depth 1
```

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
2020-12-12 17:06:40 +00:00
Phaedrus Leeds
ea7b262049 CI: Ignore some paths that don't affect build
No need to waste resources running every test after the README
changes.
2020-10-29 16:07:56 +01:00
Alexander Larsson
97099bde37 CI: Build ostree from git (needed for new summary format) 2020-10-29 15:30:35 +01:00
Alexander Larsson
3d65276f79 Add --enable-internal-checks option and use in CI
This enables the internal checks in the generated variant parser.
2020-10-29 15:30:35 +01:00
Alexander Larsson
946cf126b7 CI: Add a valgrind check
This takes a long time, but doesn't have to be mandatory, also we
only run it if the regular make check passes.

Removes some old no-longer needed ci config workaround.

The new test uses ubuntu-20.04 so we get wider distro testing.
2020-08-24 08:55:14 +02:00
Alexander Larsson
333c746f06 Revert "CI: Run make check in parallel (-j NCPU)"
This reverts commit 4401862ac5.
2020-08-24 08:53:12 +02:00
Alexander Larsson
4401862ac5 CI: Run make check in parallel (-j NCPU) 2020-08-21 17:15:38 +02:00
Alexander Larsson
b3dff7aa97 Add 1.8 branch to CI 2020-06-30 11:21:38 +02:00
Alexander Larsson
31612d7568 CI: Add libzstd-dev dependency 2020-06-05 09:35:30 +02:00
Alexander Larsson
392fb03d9c CI: Run on flatpak-1.6.x branch 2020-03-30 13:36:51 +02:00
Alexander Larsson
4b32592677 Enable introspection on old glib test too 2020-03-27 09:39:02 +01:00
Alexander Larsson
4c21621935 Enable gtk-doc in CI test
This doesn't seems to work with asan, so do it in the clang build
2020-03-27 09:39:02 +01:00
Simon McVittie
0d58999756 CI: Do one build out-of-tree
With the gcc build out-of-tree and the clang build in-tree, we're
testing both ways.

Signed-off-by: Simon McVittie <smcv@collabora.com>
2020-02-27 12:49:12 +00:00
Alexander Larsson
966c6e2a25 CI: Add python3-pyparsing deps 2020-02-17 16:10:50 +01:00
Alexander Larsson
5cfccaad39 CI: Test build with old glib (xenial) 2019-12-23 11:30:45 +01:00
Alexander Larsson
69fae3b380 Work around github repo issue
See:
https://github.community/t5/GitHub-Actions/ubuntu-latest-Apt-repository-list-issues/m-p/41163/highlight/true#M4513
2019-12-13 16:28:37 +01:00
Alexander Larsson
62529fa0ce ci: Drop --trace from make check
Its really hard to read the output with all this spew
2019-10-09 14:25:44 +02:00
Philip Withnall
1e589c1b74 github: Add malcontent (parental controls) support to CI build
Signed-off-by: Philip Withnall <withnall@endlessm.com>
2019-10-03 13:54:37 +02:00
Alexander Larsson
32ec943adf CI: Store individual test logs also on failure (not just cancel)
This way we can get more detail on the failed test.
2019-10-02 14:57:11 +02:00
Alexander Larsson
93c314d46b CI: Install socat 2019-10-02 14:57:11 +02:00
Alexander Larsson
aaac533ca4 Add action that checks for autosquash commits in pull requests
We want to block merging for these, to ensure that you autosquash
before merging.

Ideally we'd like automatic (or at least via a bot) autosquashing, but
that is not currently possible.
2019-09-26 13:00:22 +02:00
Alexander Larsson
a046843fea Trigger CI on pull_request too
But, only to a limited subset of branches
2019-09-25 16:43:50 +02:00
Alexander Larsson
266e12e432 Use github actions for CI 2019-09-25 13:07:46 +02:00