mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-11-08 11:36:07 +01:00
21 lines
474 B
YAML
21 lines
474 B
YAML
language: nix
|
|
|
|
sudo: false
|
|
|
|
env:
|
|
global:
|
|
- CACHIX_CACHE=nix-on-droid
|
|
|
|
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
|
|
- cachix use "${CACHIX_CACHE}"
|
|
- cachix push "${CACHIX_CACHE}" -w &
|
|
|
|
script:
|
|
- nix-build ci.nix
|
|
|
|
after_success:
|
|
- nix-build ci.nix | cachix push "${CACHIX_CACHE}"
|