mirror of
https://gitlab.archlinux.org/archlinux/archlinux-docker.git
synced 2026-05-05 05:46:16 +02:00
Don't use after_script to test base-devel
after_script won't affect the job exit code [1], so we can't use it for tests. Instead we are using YAML anchors for script [2]. [1] https://docs.gitlab.com/ee/ci/yaml/#before_script-and-after_script [2] https://docs.gitlab.com/ee/ci/yaml/#yaml-anchors-for-script
This commit is contained in:
parent
a51b77535a
commit
52c1613c20
@ -149,22 +149,26 @@ image:publish:secure:
|
||||
refs:
|
||||
- releases
|
||||
- tags
|
||||
script:
|
||||
- pacman -Sy
|
||||
- pacman -Qqk
|
||||
- pacman -Syu --noconfirm docker grep
|
||||
- docker -v
|
||||
- id -u http
|
||||
- locale | grep -q UTF-8
|
||||
|
||||
.test-script: &test-script
|
||||
- pacman -Sy
|
||||
- pacman -Qqk
|
||||
- pacman -Syu --noconfirm docker grep
|
||||
- docker -v
|
||||
- id -u http
|
||||
- locale | grep -q UTF-8
|
||||
|
||||
test:base:
|
||||
extends: .test
|
||||
image: $CI_REGISTRY_IMAGE:base-$CI_COMMIT_REF_SLUG
|
||||
script:
|
||||
- *test-script
|
||||
|
||||
test:base-devel:
|
||||
extends: .test
|
||||
image: $CI_REGISTRY_IMAGE:base-devel-$CI_COMMIT_REF_SLUG
|
||||
after_script:
|
||||
script:
|
||||
- *test-script
|
||||
- gcc -v
|
||||
- g++ -v
|
||||
- make -v
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user