2020-01-12 11:52:33 -08:00
|
|
|
language: shell
|
2019-07-19 09:41:36 -07:00
|
|
|
|
2019-11-27 05:04:48 -08:00
|
|
|
install:
|
|
|
|
# Retry installing nix due to nondeterministic error
|
|
|
|
# Fatal error: glibc detected an invalid stdio handle
|
|
|
|
# see:
|
|
|
|
# https://github.com/nh2/static-haskell-nix/pull/27#issuecomment-502652181
|
|
|
|
# https://github.com/nixos/nix/issues/2733
|
|
|
|
- (for i in {1..5}; do bash <(curl https://nixos.org/nix/install) && exit 0; done; exit 1)
|
|
|
|
- . /home/travis/.nix-profile/etc/profile.d/nix.sh
|
|
|
|
- if [[ $STABLE == 1 ]]; then export NIX_PATH="nixpkgs=$(nix eval --raw -f pkgs/nixpkgs-pinned.nix nixpkgs)"; fi
|
|
|
|
- if [[ $STABLE == 0 ]]; then export NIX_PATH="nixpkgs=$(nix eval --raw -f pkgs/nixpkgs-pinned.nix nixpkgs-unstable)"; fi
|
2020-01-12 11:52:35 -08:00
|
|
|
- nix-env -iA cachix -f https://cachix.org/api/v1/install
|
|
|
|
- cachix use nix-bitcoin
|
2019-11-27 05:04:48 -08:00
|
|
|
- VER="$(nix eval nixpkgs.lib.version)"
|
2019-07-19 09:41:36 -07:00
|
|
|
env:
|
2020-01-12 11:52:33 -08:00
|
|
|
jobs:
|
2019-07-19 09:41:36 -07:00
|
|
|
- PKG=nodeinfo STABLE=1
|
|
|
|
- PKG=hwi STABLE=1
|
|
|
|
- PKG=lightning-charge STABLE=1
|
|
|
|
- PKG=lightning-charge STABLE=0
|
|
|
|
- PKG=nanopos STABLE=1
|
|
|
|
- PKG=nanopos STABLE=0
|
|
|
|
- PKG=spark-wallet STABLE=1
|
|
|
|
- PKG=elementsd STABLE=1
|
|
|
|
- PKG=elementsd STABLE=0
|
|
|
|
- PKG=electrs STABLE=1
|
2020-01-12 11:52:34 -08:00
|
|
|
# broken
|
|
|
|
# - PKG=electrs STABLE=0
|
2019-10-13 13:27:08 -07:00
|
|
|
- PKG=liquid-swap STABLE=1
|
2019-11-27 05:04:48 -08:00
|
|
|
script:
|
|
|
|
- printf '%s (%s)\n' "$NIX_PATH" "$VER"
|
|
|
|
- nix-build -A $PKG
|