about summary refs log tree commit diff
path: root/tools/nixery/.travis.yml
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2019-11-09T14·30+0000
committerVincent Ambo <github@tazj.in>2019-11-09T15·35+0000
commit104c930040ab081f6e24aad95a7df71339d8e6d4 (patch)
tree88805b9fa7bc82bc93ce502e8174b163986794d0 /tools/nixery/.travis.yml
parent9a8abeff977cfb488073c1f338df0821021d41ab (diff)
chore(build): Use significantly fewer layers for Nixery itself
Nixery itself is built with the buildLayeredImage system, which takes
some time to create large numbers of layers.

This adjusts the default number of image layers from 96 to 20.

Additionally Nixery's image is often loaded with `docker load -i`,
which ignores layer cache hits anyways.

Additionaly the CI build is configured to use only 1, which speeds up
CI runs.
Diffstat (limited to 'tools/nixery/.travis.yml')
-rw-r--r--tools/nixery/.travis.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/nixery/.travis.yml b/tools/nixery/.travis.yml
index 72b2a657b34b..b0a2b3f997f9 100644
--- a/tools/nixery/.travis.yml
+++ b/tools/nixery/.travis.yml
@@ -15,7 +15,7 @@ before_script:
   - cachix use nixery
 script:
   - test -z $(gofmt -l server/ build-image/)
-  - nix-build | cachix push nixery
+  - nix-build --arg maxLayers 1 | cachix push nixery
 
   # This integration test makes sure that the container image built
   # for Nixery itself runs fine in Docker, and that images pulled