Try installing
This commit is contained in:
@@ -2,17 +2,19 @@ pipeline:
|
|||||||
build:
|
build:
|
||||||
image: nixos/nix
|
image: nixos/nix
|
||||||
commands:
|
commands:
|
||||||
|
- echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf
|
||||||
|
- nix run --store 'unix:///mnt/nix/var/nix/daemon-socket/socket?root=/mnt' --eval-store local nixpkgs#bashInteractive
|
||||||
# Lint
|
# Lint
|
||||||
- nix --experimental-features 'nix-command flakes' develop --store 'unix:///mnt/nix/var/nix/daemon-socket/socket?root=/mnt' --eval-store local --command cargo -- fmt --all -- --check
|
- nix develop --store 'unix:///mnt/nix/var/nix/daemon-socket/socket?root=/mnt' --eval-store local --command cargo -- fmt --all -- --check
|
||||||
- nix --experimental-features 'nix-command flakes' develop --store 'unix:///mnt/nix/var/nix/daemon-socket/socket?root=/mnt' --eval-store local --command cargo -- clippy -- -D warnings -W clippy::must_use_candidate
|
- nix develop --store 'unix:///mnt/nix/var/nix/daemon-socket/socket?root=/mnt' --eval-store local --command cargo -- clippy -- -D warnings -W clippy::must_use_candidate
|
||||||
- nix --experimental-features 'nix-command flakes' develop --store 'unix:///mnt/nix/var/nix/daemon-socket/socket?root=/mnt' --eval-store local .#ci --command alejandra -- --check .
|
- nix develop --store 'unix:///mnt/nix/var/nix/daemon-socket/socket?root=/mnt' --eval-store local .#ci --command alejandra -- --check .
|
||||||
- nix --experimental-features 'nix-command flakes' develop --store 'unix:///mnt/nix/var/nix/daemon-socket/socket?root=/mnt' --eval-store local .#ci --command markdown-link-check README.md
|
- nix develop --store 'unix:///mnt/nix/var/nix/daemon-socket/socket?root=/mnt' --eval-store local .#ci --command markdown-link-check README.md
|
||||||
# Test
|
# Test
|
||||||
- nix --experimental-features 'nix-command flakes' develop --command cargo test --verbose --release
|
- nix develop --command cargo test --verbose --release
|
||||||
- nix --experimental-features 'nix-command flakes' develop --command cargo test --verbose
|
- nix develop --command cargo test --verbose
|
||||||
# Run through Nix
|
# Run through Nix
|
||||||
- nix --experimental-features 'nix-command flakes' build
|
- nix build
|
||||||
- nix --experimental-features 'nix-command flakes' run
|
- nix run
|
||||||
volumes:
|
volumes:
|
||||||
- "/nix:/mnt/nix:ro"
|
- "/nix:/mnt/nix:ro"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user