Skip to content
Snippets Groups Projects
Verified Commit 22a70bbf authored by Vincent Lafeychine's avatar Vincent Lafeychine
Browse files

feat(ci): Add 'cargo test' job

parent a228af60
No related branches found
No related tags found
1 merge request!39Update dependencies
...@@ -64,24 +64,28 @@ nix-cache: ...@@ -64,24 +64,28 @@ nix-cache:
clippy: clippy:
stage: lint stage: lint
needs: [ "nix-cache" ]
script: script:
- cd rr_frontend - cd rr_frontend
- nix develop -c cargo clippy --all-targets --all-features --no-deps - nix develop -c cargo clippy --all-targets --all-features --no-deps
fmt: fmt:
stage: lint stage: lint
needs: [ "nix-cache" ]
script: script:
- cd rr_frontend - cd rr_frontend
- nix develop -c cargo fmt --check - nix develop -c cargo fmt --check
theories: theories:
stage: build stage: build
needs: [ "nix-cache" ]
variables: variables:
NIX_DERIVATION: .#theories NIX_DERIVATION: .#theories
extends: .build_to_artifacts extends: .build_to_artifacts
frontend: frontend:
stage: build stage: build
needs: [ "nix-cache" ]
variables: variables:
NIX_DERIVATION: .#frontend NIX_DERIVATION: .#frontend
extends: .build_to_artifacts extends: .build_to_artifacts
...@@ -93,8 +97,16 @@ stdlib: ...@@ -93,8 +97,16 @@ stdlib:
NIX_DERIVATION: .#stdlib NIX_DERIVATION: .#stdlib
extends: .build_to_artifacts extends: .build_to_artifacts
tests: frontend-tests:
stage: tests stage: tests
needs: [ "frontend" ]
script:
- cd rr_frontend
- nix develop -c cargo test
case_studies:
stage: tests
needs: [ "stdlib" ]
script: script:
- nix shell -c nix run nixpkgs#gnumake -- setup-nix - nix shell -c nix run nixpkgs#gnumake -- setup-nix
- nix shell -c nix run nixpkgs#gnumake -- generate_stdlib - nix shell -c nix run nixpkgs#gnumake -- generate_stdlib
......
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