nur/.travis.yml

35 lines
1.1 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
2019-11-06 15:07:19 +00:00
- env: NIX_CHANNEL=https://nixos.org/channels/nixos-19.09
install:
- nix --version
- if [ -n "${CACHIX_CACHE}" ]; then travis_retry nix-channel --update; fi
- if [ -n "${CACHIX_CACHE}" ]; then nix-env -iA cachix -f https://cachix.org/api/v1/install; fi
- if [ -n "${CACHIX_CACHE}" ]; then cachix use "${CACHIX_CACHE}"; fi
- nix-channel --add "${NIX_CHANNEL}" nixpkgs
- travis_retry nix-channel --update
script:
- nix-build ci.nix -A buildOutputs
- 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 nix-build ci.nix -A cacheOutputs | cachix push "${CACHIX_CACHE}"; fi
2020-01-05 16:53:24 +00:00
- if [ "cron" != "${TRAVIS_EVENT_TYPE}" -a "false" = "${TRAVIS_PULL_REQUEST}" -a "master" = "${TRAVIS_BRANCH}" ]; then
curl -XPOST "https://nur-update.herokuapp.com/update?repo=${NUR_REPO}"; fi