diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3e3c1469e5dbefc69d5f569a27a1eb4f45191c1d..fa7ff57dd6fec8d2ce483fd33724ae510cfb86e1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -36,8 +36,8 @@ - nixPath: - nixpkgs=channel:nixos-unstable - nixpkgs=channel:nixpkgs-unstable - pull_request: - master + pull_request: runs-on: ubuntu-latest steps: - name: Checkout repository diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000000000000000000000000000000000000..ef6bb3289d8553e7a03adbd0ada799b786fa2bb4 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,40 @@ +version: ~> 1.0 +import: nix-community/nix-travis-ci:nix.yml@main + +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="" + +matrix: + include: + - env: NIX_PATH=nixpkgs=channel:nixpkgs-unstable + - env: NIX_PATH=nixpkgs=channel:nixos-unstable + - env: NIX_PATH=nixpkgs=channel:nixos-20.03 + +script: + - nix-build ci.nix -A buildOutputs + - nix eval -f default.nix 'lib' + - nix eval -f default.nix 'modules' + - nix eval -f default.nix 'overlays' + +after_success: + - if [ -n "${CACHIX_CACHE}" ]; then nix-build ci.nix -A cacheOutputs | cachix push "${CACHIX_CACHE}"; fi + - if [[ NUR_REPO != "" && "cron" != "${TRAVIS_EVENT_TYPE}" && "false" = "${TRAVIS_PULL_REQUEST}" && "master" = "${TRAVIS_BRANCH}" ]]; then + curl -XPOST "https://nur-update.herokuapp.com/update?repo=${NUR_REPO}"; fi +