Skip to content
Snippets Groups Projects
Commit f7c05b10 authored by Padok's avatar Padok
Browse files

gitlab-ci

parent 5920b54e
No related branches found
No related tags found
1 merge request!26Ci fixes
*.o
out/
result
result*
calc
fuzz_calc
unit_test
......
image: nixos/nix:latest
stages:
- build
- testing
before_script:
- echo $CI_PROJECT_DIR
build:calc:
stage: build
script:
- nix-build release.nix -A rpnCalc
artifacts:
paths:
- "calc"
build:fuzz_calc:
stage: build
script:
- nix-build release.nix -A rpnCalcFuzz
artifacts:
expire_in: 30 minutes
paths:
- "fuzz_calc"
testing:run_test:
stage: testing
script:
- nix-build release.nix -A rpnCalcTests
testing:fuzz:
stage: testing
allow_failure: true
dependencies:
- build:fuzz_calc
script:
- echo core > sudo tee /proc/sys/kernel/core_pattern
- nix-build release.nix -A rpnCalcFuzzLog
- if [ -z "$(find out/crashes -name 'id*')" ]; then exit 0; else exit 1; fi
artifacts:
paths:
- "out/crashes/*"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment