Travis CI
- Create new binary cache on https://app.cachix.org/cache and generate a write auth token.
- Replace
mycachein the following.travis.yml:
language: nixnix: 2.3.7sudo: falseenv: global: - CACHIX_CACHE=mycacheinstall:- echo "trusted-users = $USER" | sudo tee -a /etc/nix/nix.conf- sudo systemctl restart nix-daemon- nix-env -iA nixpkgs.cachix- cachix use $CACHIX_CACHEscript:- cachix watch-exec $CACHIX_CACHE nix-build- cachix watch-exec $CACHIX_CACHE -- nix-shell --run "echo nix-shell successfully entered"- Inside your project top-level directory run:
nix-shell -p travis --run "travis login --pro --auto"nix-shell -p travis --run "travis encrypt CACHIX_AUTH_TOKEN=XXX --add"