2018-07-16 12:14:10 +00:00
|
|
|
language: nix
|
|
|
|
|
|
|
|
sudo: false
|
|
|
|
|
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- CACHIX_CACHE=
|
|
|
|
- NUR_REPO=<YOUR_NUR_REPO_NAME_HERE>
|
|
|
|
|
2018-10-02 14:13:14 +00:00
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- env: NIX_CHANNEL=https://nixos.org/channels/nixpkgs-unstable
|
|
|
|
- env: NIX_CHANNEL=https://nixos.org/channels/nixos-unstable
|
2019-04-15 21:48:24 +00:00
|
|
|
- env: NIX_CHANNEL=https://nixos.org/channels/nixos-19.03
|
2018-10-02 14:13:14 +00:00
|
|
|
|
2018-07-16 12:14:10 +00:00
|
|
|
install:
|
|
|
|
- nix --version
|
2018-10-02 14:13:14 +00:00
|
|
|
- if [ -n "${CACHIX_CACHE}" ]; then travis_retry nix-channel --update; fi
|
2019-03-06 10:57:10 +00:00
|
|
|
- if [ -n "${CACHIX_CACHE}" ]; then nix-env -iA cachix -f https://cachix.org/api/v1/install; fi
|
2018-07-16 12:14:10 +00:00
|
|
|
- if [ -n "${CACHIX_CACHE}" ]; then cachix use "${CACHIX_CACHE}"; fi
|
2018-10-02 14:13:14 +00:00
|
|
|
- nix-channel --add "${NIX_CHANNEL}" nixpkgs
|
|
|
|
- travis_retry nix-channel --update
|
2018-07-16 12:14:10 +00:00
|
|
|
|
|
|
|
script:
|
2019-03-31 19:13:48 +00:00
|
|
|
- nix-build ci.nix -A buildOutputs
|
2018-07-22 10:49:53 +00:00
|
|
|
- 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'
|
2018-07-16 12:14:10 +00:00
|
|
|
|
|
|
|
after_success:
|
2019-03-31 19:13:48 +00:00
|
|
|
- if [ -n "${CACHIX_CACHE}" ]; then nix-build ci.nix -A cacheOutputs | cachix push "${CACHIX_CACHE}"; fi
|
2018-07-16 12:33:35 +00:00
|
|
|
- if [ "false" = "${TRAVIS_PULL_REQUEST}" -a "master" = "${TRAVIS_BRANCH}" ]; then
|
|
|
|
curl -XPOST "https://nur-update.herokuapp.com/update?repo=${NUR_REPO}"; fi
|
2018-07-16 12:14:10 +00:00
|
|
|
|