Merge pull request #25 from abathur/patch-1
This commit is contained in:
commit
001d49b9a8
1 changed files with 8 additions and 19 deletions
27
.travis.yml
27
.travis.yml
|
@ -1,5 +1,5 @@
|
||||||
language: nix
|
version: ~> 1.0
|
||||||
nix: 2.3.4
|
import: nix-community/nix-travis-ci:nix.yml@main
|
||||||
|
|
||||||
sudo: false
|
sudo: false
|
||||||
|
|
||||||
|
@ -13,30 +13,19 @@ env:
|
||||||
#
|
#
|
||||||
# For this to work, you also need to set the CACHIX_SIGNING_KEY
|
# For this to work, you also need to set the CACHIX_SIGNING_KEY
|
||||||
# in your repository settings in Travis.
|
# in your repository settings in Travis.
|
||||||
- CACHIX_CACHE=
|
# - CACHIX_CACHE=
|
||||||
# Set this to notify the global nur package registry that changes are
|
# Set this to notify the global nur package registry that changes are
|
||||||
# available.
|
# available.
|
||||||
#
|
#
|
||||||
# The repo name as used in
|
# The repo name as used in
|
||||||
# https://github.com/nix-community/NUR/blob/master/repos.json
|
# https://github.com/nix-community/NUR/blob/master/repos.json
|
||||||
- NUR_REPO=<YOUR_NUR_REPO_NAME_HERE>
|
- NUR_REPO="<YOUR_NUR_REPO_NAME_HERE>"
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- env: NIX_CHANNEL=https://nixos.org/channels/nixpkgs-unstable
|
- env: NIX_PATH=nixpkgs=channel:nixpkgs-unstable
|
||||||
- env: NIX_CHANNEL=https://nixos.org/channels/nixos-unstable
|
- env: NIX_PATH=nixpkgs=channel:nixos-unstable
|
||||||
- env: NIX_CHANNEL=https://nixos.org/channels/nixos-20.03
|
- env: NIX_PATH=nixpkgs=channel:nixos-20.03
|
||||||
|
|
||||||
install:
|
|
||||||
- nix --version
|
|
||||||
# for cachix we need travis to be a trusted nix user
|
|
||||||
- echo "trusted-users = $USER" | sudo tee -a /etc/nix/nix.conf
|
|
||||||
- sudo systemctl restart nix-daemon
|
|
||||||
- if [ -n "${CACHIX_CACHE}" ]; then travis_retry nix-channel --update; fi
|
|
||||||
- if [ -n "${CACHIX_CACHE}" ]; then nix-env -iA cachix -f https://cachix.org/api/v1/install; fi
|
|
||||||
- if [ -n "${CACHIX_CACHE}" ]; then cachix use "${CACHIX_CACHE}"; fi
|
|
||||||
- nix-channel --add "${NIX_CHANNEL}" nixpkgs
|
|
||||||
- travis_retry nix-channel --update
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- nix-build ci.nix -A buildOutputs
|
- nix-build ci.nix -A buildOutputs
|
||||||
|
@ -46,6 +35,6 @@ script:
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- if [ -n "${CACHIX_CACHE}" ]; then nix-build ci.nix -A cacheOutputs | cachix push "${CACHIX_CACHE}"; fi
|
- if [ -n "${CACHIX_CACHE}" ]; then nix-build ci.nix -A cacheOutputs | cachix push "${CACHIX_CACHE}"; fi
|
||||||
- if [ "cron" != "${TRAVIS_EVENT_TYPE}" -a "false" = "${TRAVIS_PULL_REQUEST}" -a "master" = "${TRAVIS_BRANCH}" ]; then
|
- if [[ NUR_REPO != "<YOUR_NUR_REPO_NAME_HERE>" && "cron" != "${TRAVIS_EVENT_TYPE}" && "false" = "${TRAVIS_PULL_REQUEST}" && "master" = "${TRAVIS_BRANCH}" ]]; then
|
||||||
curl -XPOST "https://nur-update.herokuapp.com/update?repo=${NUR_REPO}"; fi
|
curl -XPOST "https://nur-update.herokuapp.com/update?repo=${NUR_REPO}"; fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue