nur-packages/.travis.yml

29 lines
833 B
YAML
Raw Permalink Normal View History

2020-10-15 17:05:30 +11:00
version: ~> 1.0
import: nix-community/nix-travis-ci:nix.yml@main
2020-10-17 12:45:20 +11:00
dist: xenial
os: linux
2020-10-15 17:05:30 +11:00
env:
global:
2020-10-16 17:10:25 +11:00
- CACHIX_CACHE="xeals"
- NUR_REPO="xeals"
2020-10-15 17:05:30 +11:00
2020-10-16 17:10:25 +11:00
jobs:
2020-10-15 17:05:30 +11:00
include:
- env: NIX_PATH=nixpkgs=channel:nixpkgs-unstable
- env: NIX_PATH=nixpkgs=channel:nixos-unstable
# - env: NIX_PATH=nixpkgs=channel:nixos-20.03
2020-10-15 17:05:30 +11:00
script:
2020-10-17 12:45:20 +11:00
- nix-build ci.nix -kA buildOutputs
2020-10-15 17:05:30 +11:00
- nix eval -f default.nix 'lib'
- nix eval -f default.nix 'modules'
- nix eval -f default.nix 'overlays'
after_success:
2020-10-17 12:45:20 +11:00
- if [ -n "${CACHIX_CACHE}" ]; then nix-build ci.nix -kA cacheOutputs | cachix push "${CACHIX_CACHE}"; fi
2020-10-17 16:21:16 +11:00
- if [[ NUR_REPO != "xeals" && "cron" != "${TRAVIS_EVENT_TYPE}" && "false" = "${TRAVIS_PULL_REQUEST}" && "master" = "${TRAVIS_BRANCH}" ]]; then
2020-10-15 17:05:30 +11:00
curl -XPOST "https://nur-update.herokuapp.com/update?repo=${NUR_REPO}"; fi