Home

nur @e5582ab9089077f320a55e9f14613d22869276cd - refs - log -
-
https://git.jolheiser.com/nur.git
My NUR
nur / .travis.yml
- raw
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
language: nix

sudo: false

env:
  global:
    - CACHIX_CACHE=
    - NUR_REPO=<YOUR_NUR_REPO_NAME_HERE>

install:
 - nix --version
 - travis_retry nix-channel --update
 - if [ -n "${CACHIX_CACHE}" ]; then nix-env -if https://github.com/cachix/cachix/tarball/master --substituters https://cachix.cachix.org --trusted-public-keys cachix.cachix.org-1:eWNHQldwUO7G2VkjpnjDbWwy4KQ/HNxht7H4SSoMckM=; fi
 - if [ -n "${CACHIX_CACHE}" ]; then cachix use "${CACHIX_CACHE}"; fi

script:
 - export outs=$(nix-build non-broken.nix)
 - echo Produced $outs

after_success:
  - if [ -n "${CACHIX_CACHE}" ]; then cachix push "${CACHIX_CACHE}" $outs; fi
  - if [ "false" = "${TRAVIS_PULL_REQUEST}" -a "master" = "${TRAVIS_BRANCH}" ]; then
      curl -XPOST "https://nur-update.herokuapp.com/update?repo=${NUR_REPO}"; fi