diff options
author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2021-05-13 14:00:54 +0200 |
---|---|---|
committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2021-05-16 02:44:01 +0200 |
commit | 67a9563a133eb2bafccfacd1a96f18f49c8de03c (patch) | |
tree | 55e5206ee701d33ae27dcba1ced465a65ba36ac8 /.gitlab-ci.yml | |
parent | e9cded086977c5f1863881bc6723545f24464b38 (diff) | |
download | gjs-67a9563a133eb2bafccfacd1a96f18f49c8de03c.tar.gz |
test: Add a CI job that ensures that PCH file is populated with all headers
...And the other way around, so that we won't include more than needed
both in code and pch headers
As per this we need to install actual bash and grep on alpine as this
script needs those features (which are not provided by buysbox).
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 29 |
1 files changed, 27 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5a9c2308..e1788ee3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -14,7 +14,7 @@ stages: .gjs-alpine: variables: - FDO_DISTRIBUTION_TAG: '2021-04-02.0' + FDO_DISTRIBUTION_TAG: '2021-05-13.0' FDO_UPSTREAM_REPO: GNOME/gjs build-alpine-image: @@ -23,7 +23,7 @@ build-alpine-image: - .gjs-alpine stage: prepare variables: - FDO_DISTRIBUTION_PACKAGES: cppcheck git python3 yarn + FDO_DISTRIBUTION_PACKAGES: cppcheck git python3 yarn bash grep FDO_DISTRIBUTION_EXEC: | python3 -m ensurepip && rm -r /usr/lib/python*/ensurepip && @@ -199,6 +199,7 @@ cppcheck: - '**/*.c' - '**/*.cpp' - '**/*.h' + - '**/*.hh' cpplint: when: on_success @@ -221,6 +222,7 @@ cpplint: - '**/*.c' - '**/*.cpp' - '**/*.h' + - '**/*.hh' eslint: when: on_success @@ -243,6 +245,29 @@ eslint: - .eslintrc.yml - '**/.eslintrc.yml' +pch_check: + when: on_success + stage: source_check + extends: + - .fdo.distribution-image@alpine + - .gjs-alpine + script: + - env SELFTEST=1 test/check-pch.sh + - test/check-pch.sh + except: + refs: + - schedules + - tags + variables: + - $CI_COMMIT_MESSAGE =~ /\[skip pch_check\]/ + only: + changes: + - test/check-pch.sh + - '**/*.c' + - '**/*.cpp' + - '**/*.h' + - '**/*.hh' + iwyu: when: on_success stage: source_check |