Verified Commit 52c1613c authored by hashworks's avatar hashworks
Browse files

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
parent a51b7753
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment