2020-09-01 13:35:45 +00:00
|
|
|
version: ~> 1.0
|
|
|
|
import: nix-community/nix-travis-ci:nix.yml@main
|
2018-07-16 12:14:10 +00:00
|
|
|
|
|
|
|
sudo: false
|
|
|
|
|
|
|
|
env:
|
|
|
|
global:
|
2020-04-04 19:39:43 +00:00
|
|
|
# Set this to cache your build results in cachix for faster builds
|
|
|
|
# in travis and for everyone who uses your cache.
|
|
|
|
#
|
|
|
|
# Format: Your cachix cache host name without the ".cachix.org" suffix.
|
|
|
|
# Example: mycache (for mycache.cachix.org)
|
|
|
|
#
|
|
|
|
# For this to work, you also need to set the CACHIX_SIGNING_KEY
|
|
|
|
# in your repository settings in Travis.
|
2018-07-16 12:14:10 +00:00
|
|
|
- CACHIX_CACHE=
|
2020-04-04 19:39:43 +00:00
|
|
|
# Set this to notify the global nur package registry that changes are
|
|
|
|
# available.
|
|
|
|
#
|
|
|
|
# The repo name as used in
|
|
|
|
# https://github.com/nix-community/NUR/blob/master/repos.json
|
2018-07-16 12:14:10 +00:00
|
|
|
- NUR_REPO=<YOUR_NUR_REPO_NAME_HERE>
|
|
|
|
|
2018-10-02 14:13:14 +00:00
|
|
|
matrix:
|
|
|
|
include:
|
2020-09-01 13:35:45 +00:00
|
|
|
- env: NIX_PATH: nixpkgs=channel:nixpkgs-unstable
|
|
|
|
- env: NIX_PATH: nixpkgs=channel:nixos-unstable
|
|
|
|
- env: NIX_PATH: nixpkgs=channel:nixos-20.03
|
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
|
2020-01-05 16:53:24 +00:00
|
|
|
- if [ "cron" != "${TRAVIS_EVENT_TYPE}" -a "false" = "${TRAVIS_PULL_REQUEST}" -a "master" = "${TRAVIS_BRANCH}" ]; then
|
2018-07-16 12:33:35 +00:00
|
|
|
curl -XPOST "https://nur-update.herokuapp.com/update?repo=${NUR_REPO}"; fi
|
2018-07-16 12:14:10 +00:00
|
|
|
|