1
0
Fork 0
nur/.travis.yml

38 lines
1.2 KiB
YAML
Raw Normal View History

language: nix
sudo: false
env:
global:
- CACHIX_CACHE=
- NUR_REPO=<YOUR_NUR_REPO_NAME_HERE>
matrix:
include:
- env: NIX_CHANNEL=https://nixos.org/channels/nixpkgs-unstable
- env: NIX_CHANNEL=https://nixos.org/channels/nixos-unstable
- env: NIX_CHANNEL=https://nixos.org/channels/nixos-18.03
# cachix will be introduced in 18.09, so we just allow a failure for now
allow_failures:
- env: NIX_CHANNEL=https://nixos.org/channels/nixos-18.03
install:
- nix --version
- if [ -n "${CACHIX_CACHE}" ]; then travis_retry nix-channel --update; fi
2018-08-23 12:11:17 +00:00
- if [ -n "${CACHIX_CACHE}" ]; then nix-env -i cachix; fi
- if [ -n "${CACHIX_CACHE}" ]; then cachix use "${CACHIX_CACHE}"; fi
- nix-channel --add "${NIX_CHANNEL}" nixpkgs
- travis_retry nix-channel --update
script:
- outs=$(nix-build non-broken.nix) && echo Produced $outs
- nix eval -f default.nix 'lib'
- nix eval -f default.nix 'modules'
2018-07-22 16:16:24 +00:00
- nix eval -f default.nix 'overlays'
after_success:
- if [ -n "${CACHIX_CACHE}" ]; then cachix push "${CACHIX_CACHE}" $outs; fi
- if [ "false" = "${TRAVIS_PULL_REQUEST}" -a "master" = "${TRAVIS_BRANCH}" ]; then
curl -XPOST "https://nur-update.herokuapp.com/update?repo=${NUR_REPO}"; fi