glib/.gitlab-ci
Philip Withnall 1378a40734 ci: Limit depth of fetch for initial code checks
Rather than fetching the entire repository history, limit the fetch
depth to commits in the last 4 weeks. If a branch was branched longer
than 4 weeks ago, it seems reasonable to require it to be rebased before
it can be reviewed.

At the current rate of development, this reduces the bandwidth needed
for git pulls in the initial code checks from 73MB to 9MB.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
2020-07-25 01:15:02 +01:00
..
android-download-ndk.sh ci: Fix various shellcheck warnings in the shell scripts 2020-02-27 10:33:45 +00:00
android-ndk.Dockerfile ci: Cache subprojects in docker images 2020-01-15 21:36:57 -05:00
android-setup-env.sh ci: growing_stack should be true for android and ios 2020-05-29 02:44:44 +05:30
cache-subprojects.sh ci: Limit depth of subprojects when cloning 2020-07-09 12:51:21 +01:00
check-todos.py ci: Add checks for banned keywords in merge requests 2020-01-21 12:26:47 +00:00
coverage-docker.sh ci: Fix various shellcheck warnings in the shell scripts 2020-02-27 10:33:45 +00:00
cross_file_ios_example.txt ci: growing_stack should be true for android and ios 2020-05-29 02:44:44 +05:30
cross_file_mingw64.txt Make ld executable configurable 2019-11-04 15:08:33 +00:00
debian-stable.Dockerfile ci: Cache subprojects in docker images 2020-01-15 21:36:57 -05:00
fedora.Dockerfile ci: Add python3-pip to Fedora dependencies 2020-05-22 09:32:44 +01:00
fixup-cov-paths.py ci: collect test coverage and deploy a html report through gitlab pages 2018-05-02 11:14:45 +01:00
lcovrc ci: Add lcov configuration to ignore g_return_*if_fail()/g_assert*() 2018-10-06 00:19:20 +01:00
meson-junit-report.py ci: Handle missing suite information in test output JSON 2020-05-22 09:32:44 +01:00
mingw.Dockerfile ci: Cache subprojects in docker images 2020-01-15 21:36:57 -05:00
README.md ci: Document access token permissions needed for uploading images 2020-05-22 09:32:44 +01:00
run-check-todos.sh ci: Limit depth of fetch for initial code checks 2020-07-25 01:15:02 +01:00
run-docker.sh ci: Fix various shellcheck warnings in the shell scripts 2020-02-27 10:33:45 +00:00
run-style-check-diff.sh ci: Limit depth of fetch for initial code checks 2020-07-25 01:15:02 +01:00
run-tests.sh ci: Fix various shellcheck warnings in the shell scripts 2020-02-27 10:33:45 +00:00
show-execution-environment.sh CI: Show execution environment before we start 2020-03-04 15:25:47 +00:00
test-msvc.bat CI: Switch to new Windows runners 2020-04-29 08:56:56 +02:00
test-msys2.sh CI: Make sure we use meson 0.49.2 in MSYS2 2020-05-06 22:07:37 +02:00

CI support stuff

Docker image

GitLab CI jobs run in a Docker image, defined here. To update that image (perhaps to install some more packages):

  1. Edit .gitlab-ci/Dockerfile with the changes you want
  2. Run .gitlab-ci/run-docker.sh build --base=debian-stable --base-version=1 to build the new image (bump the version from the latest listed for that base on https://gitlab.gnome.org/GNOME/glib/container_registry)
  3. Run .gitlab-ci/run-docker.sh push --base=debian-stable --base-version=1 to upload the new image to the GNOME GitLab Docker registry
    • If this is the first time you're doing this, you'll need to log into the registry
    • If you use 2-factor authentication on your GNOME GitLab account, you'll need to create a personal access token and use that rather than your normal password — the token should have read_registry and write_registry permissions
  4. Edit .gitlab-ci.yml (in the root of this repository) to use your new image