Nix on Travis: Difference between revisions
imported>Asymmetric m →Caching dependencies: binary-caches -> substituters |
imported>Mic92 sandboxing |
||
Line 33: | Line 33: | ||
NB: in this setting, the cache only grows. It might be manually deleted when it becomes too bloated but smarter eviction strategies can be implemented too! | NB: in this setting, the cache only grows. It might be manually deleted when it becomes too bloated but smarter eviction strategies can be implemented too! | ||
== Enable sandboxed builds == | |||
At the moment travis does not have a sandbox enabled by default. | |||
This can lead to not-easy to reproduce errors, | |||
when files from the travis image interfere with the build. | |||
Enabling is straight-forward by using the following little snippet: | |||
<syntaxHighlighting lang=nix> | |||
before_script: | |||
- sudo mkdir /etc/nix && echo 'sandbox = true' | sudo tee /etc/nix/nix.conf | |||
</syntaxHighlighting> |