Fix Cachix in Travis with trusted-users = travis

This commit is contained in:
Alexander Sosedkin 2020-07-11 12:29:07 +02:00
parent 498091c3dc
commit b6514583c0

View file

@ -6,10 +6,10 @@ env:
global: global:
- CACHIX_CACHE=nix-on-droid - CACHIX_CACHE=nix-on-droid
before_install:
- nix upgrade-nix
install: install:
# for cachix we need travis to be a trusted nix user
- echo "trusted-users = $USER" | sudo tee -a /etc/nix/nix.conf
- sudo systemctl restart nix-daemon
- nix-env -iA cachix -f https://cachix.org/api/v1/install - nix-env -iA cachix -f https://cachix.org/api/v1/install
- cachix use "${CACHIX_CACHE}" - cachix use "${CACHIX_CACHE}"
- cachix push "${CACHIX_CACHE}" -w & - cachix push "${CACHIX_CACHE}" -w &