ci: update Travis config
This commit is contained in:
parent
c45733e63e
commit
274ef8a92a
22
.travis.yml
22
.travis.yml
@ -5,23 +5,11 @@ sudo: false
|
||||
|
||||
env:
|
||||
global:
|
||||
# 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.
|
||||
# - CACHIX_CACHE=
|
||||
# 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
|
||||
- NUR_REPO="<YOUR_NUR_REPO_NAME_HERE>"
|
||||
- CACHIX_CACHE="xeals"
|
||||
- NIXPKGS_ALLOW_UNFREE="1"
|
||||
- NUR_REPO="xeals"
|
||||
|
||||
matrix:
|
||||
jobs:
|
||||
include:
|
||||
- env: NIX_PATH=nixpkgs=channel:nixpkgs-unstable
|
||||
- env: NIX_PATH=nixpkgs=channel:nixos-unstable
|
||||
@ -35,6 +23,6 @@ script:
|
||||
|
||||
after_success:
|
||||
- if [ -n "${CACHIX_CACHE}" ]; then nix-build ci.nix -A cacheOutputs | cachix push "${CACHIX_CACHE}"; fi
|
||||
- if [[ NUR_REPO != "<YOUR_NUR_REPO_NAME_HERE>" && "cron" != "${TRAVIS_EVENT_TYPE}" && "false" = "${TRAVIS_PULL_REQUEST}" && "master" = "${TRAVIS_BRANCH}" ]]; then
|
||||
- if [[ "cron" != "${TRAVIS_EVENT_TYPE}" && "false" = "${TRAVIS_PULL_REQUEST}" && "master" = "${TRAVIS_BRANCH}" ]]; then
|
||||
curl -XPOST "https://nur-update.herokuapp.com/update?repo=${NUR_REPO}"; fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user