[ci]: skip the pipeline entirely if branch isn't master
currently, it will clone the repo and then skip the step. this is wasteful, instead skip the pipeline entirely.
This commit is contained in:
parent
a9d2b5b088
commit
8248729320
|
@ -1,8 +1,8 @@
|
||||||
|
branches: master
|
||||||
|
|
||||||
pipeline:
|
pipeline:
|
||||||
analysis:
|
analysis:
|
||||||
image: alpine
|
image: alpine
|
||||||
when:
|
|
||||||
branch: master
|
|
||||||
commands: |
|
commands: |
|
||||||
apk add --no-cache build-base cppcheck clang-extra-tools \
|
apk add --no-cache build-base cppcheck clang-extra-tools \
|
||||||
imlib2-dev xorgproto \
|
imlib2-dev xorgproto \
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
|
branches: master
|
||||||
|
|
||||||
# NOTE: "stable" tcc is too old and fails at linking. instead fetching a recent known working commit.
|
# NOTE: "stable" tcc is too old and fails at linking. instead fetching a recent known working commit.
|
||||||
pipeline:
|
pipeline:
|
||||||
build:
|
build:
|
||||||
image: alpine
|
image: alpine
|
||||||
environment:
|
environment:
|
||||||
- TCC_SHA=027b8fb9b88fe137447fb8bb1b61079be9702472
|
- TCC_SHA=027b8fb9b88fe137447fb8bb1b61079be9702472
|
||||||
when:
|
|
||||||
branch: master
|
|
||||||
commands: |
|
commands: |
|
||||||
apk add --no-cache \
|
apk add --no-cache \
|
||||||
imlib2 imlib2-dev xorgproto \
|
imlib2 imlib2-dev xorgproto \
|
||||||
|
|
Loading…
Reference in New Issue