Skip to content
Snippets Groups Projects

Testing

Open Ben Gamari requested to merge rules-test into master
+ 21
19
@@ -4,32 +4,34 @@ stages:
- test
- deploy
test:
workflow:
rules:
- if: '$TESTING'
variables:
HELLO: 42
test-1:
stage: test
tags:
- x86_64-linux
image: "registry.gitlab.haskell.org/ghc/ci-images/x86_64-linux-deb9"
variables:
TESTING: "1"
rules:
- if: '$TESTING == "1"'
script:
- |
python gen_metrics.py | tee metrics.txt
artifacts:
reports:
metrics: metrics.txt
paths:
- metrics.txt
echo hello $TESTING $HELLO
pages:
stage: deploy
script:
- mkdir .public
- cp -r * .public
- mv .public public
artifacts:
paths:
- public
only:
- master
test-2:
stage: test
tags:
- x86_64-linux
image: nixos/nix
image: "registry.gitlab.haskell.org/ghc/ci-images/x86_64-linux-deb9"
rules:
- if: '$TESTING == "2"'
script:
- |
echo hello $TESTING $HELLO
Loading