aboutsummaryrefslogtreecommitdiff
path: root/tests/binary-cache-build-remote.sh
blob: ed51164a4c258b3ccbe0bc48e599f1673562fd83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
source common.sh

clearStore
clearCacheCache

# Fails without remote builders
(! nix-build --store "file://$cacheDir" dependencies.nix)

# Succeeds with default store as build remote.
nix-build --store "file://$cacheDir" --builders 'auto - - 1 1' -j0 dependencies.nix

# Succeeds without any build capability because no-op
nix-build --store "file://$cacheDir" -j0 dependencies.nix