CI: {.travis.yml,build.sh}: rename (name->project) more unique and descriptive
M .travis.yml M build.sh
This commit is contained in:
parent
f3e32b1aca
commit
234507604f
|
@ -33,7 +33,7 @@ env:
|
||||||
# - rev=nixos-unstable
|
# - rev=nixos-unstable
|
||||||
# - NIX_PATH="nixpkgs=https://github.com/nixos/nixpkgs/archive/$rev.tar.gz"
|
# - NIX_PATH="nixpkgs=https://github.com/nixos/nixpkgs/archive/$rev.tar.gz"
|
||||||
# NOTE: Project/binary name
|
# NOTE: Project/binary name
|
||||||
- name='hnix'
|
- project='hnix'
|
||||||
# NOTE: Enable all our tests in cabal
|
# NOTE: Enable all our tests in cabal
|
||||||
- ALL_TESTS='yes'
|
- ALL_TESTS='yes'
|
||||||
# NOTE: Turn all warn into err with {-Wall,-Werror}
|
# NOTE: Turn all warn into err with {-Wall,-Werror}
|
||||||
|
@ -148,9 +148,9 @@ script:
|
||||||
# NOTE: Install Cachix client using Nix:
|
# NOTE: Install Cachix client using Nix:
|
||||||
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then nix-env -iA cachix -f https://cachix.org/api/v1/install; fi
|
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then nix-env -iA cachix -f https://cachix.org/api/v1/install; fi
|
||||||
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then sudo nix-env -iA cachix -f https://cachix.org/api/v1/install; fi
|
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then sudo nix-env -iA cachix -f https://cachix.org/api/v1/install; fi
|
||||||
- cachix use "$name"
|
- cachix use "$project"
|
||||||
# NOTE: If key is set - use Cachix push, else - proceed without it
|
# NOTE: If key is set - use Cachix push, else - proceed without it
|
||||||
- if [ ! "$CACHIX_SIGNING_KEY" = "" ]; then cachix push "$name" --watch-store& fi
|
- if [ ! "$CACHIX_SIGNING_KEY" = "" ]; then cachix push "$project" --watch-store& fi
|
||||||
# NOTE: Brush timeout for previous daemon to start
|
# NOTE: Brush timeout for previous daemon to start
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
|
|
6
build.sh
6
build.sh
|
@ -24,7 +24,7 @@ rev=${rev:-'nixpkgs-unstable'}
|
||||||
# If NIX_PATH not imported - construct it from `rev`
|
# If NIX_PATH not imported - construct it from `rev`
|
||||||
NIX_PATH=${NIX_PATH:-"nixpkgs=https://github.com/nixos/nixpkgs/archive/$rev.tar.gz"}
|
NIX_PATH=${NIX_PATH:-"nixpkgs=https://github.com/nixos/nixpkgs/archive/$rev.tar.gz"}
|
||||||
export NIX_PATH
|
export NIX_PATH
|
||||||
name=${name:-'defaultProjectName'}
|
project=${project:-'defaultProjectName'}
|
||||||
|
|
||||||
# This settings expose most of the Nixpkgs Haskell.lib API: https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/haskell-modules/lib.nix
|
# This settings expose most of the Nixpkgs Haskell.lib API: https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/haskell-modules/lib.nix
|
||||||
|
|
||||||
|
@ -223,14 +223,14 @@ sudo nix-channel --update || true
|
||||||
|
|
||||||
|
|
||||||
# NOTE: Secrets are not shared to PRs from forks
|
# NOTE: Secrets are not shared to PRs from forks
|
||||||
# NOTE: nix-build | cachix push <name> - uploads binaries, runs&works only in the branches of the main repository, so for PRs - else case runs
|
# NOTE: nix-build | cachix push <project> - uploads binaries, runs&works only in the branches of the main repository, so for PRs - else case runs
|
||||||
|
|
||||||
if [ ! "$CACHIX_SIGNING_KEY" = "" ]
|
if [ ! "$CACHIX_SIGNING_KEY" = "" ]
|
||||||
|
|
||||||
then
|
then
|
||||||
|
|
||||||
# NOTE: Build of the inside repo branch - enable push Cachix cache
|
# NOTE: Build of the inside repo branch - enable push Cachix cache
|
||||||
BUILD_PROJECT | cachix push "$name"
|
BUILD_PROJECT | cachix push "$project"
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue