CI: {.travis.yml,build.sh}: rename (name->project) more unique and descriptive

M  .travis.yml
M  build.sh
This commit is contained in:
Anton-Latukha 2020-06-23 19:09:01 +03:00
parent f3e32b1aca
commit 234507604f
No known key found for this signature in database
GPG Key ID: 3D84C07E91802E41
2 changed files with 6 additions and 6 deletions

View File

@ -33,7 +33,7 @@ env:
# - rev=nixos-unstable
# - NIX_PATH="nixpkgs=https://github.com/nixos/nixpkgs/archive/$rev.tar.gz"
# NOTE: Project/binary name
- name='hnix'
- project='hnix'
# NOTE: Enable all our tests in cabal
- ALL_TESTS='yes'
# NOTE: Turn all warn into err with {-Wall,-Werror}
@ -148,9 +148,9 @@ script:
# 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}" = "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
- 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
#
#

View File

@ -24,7 +24,7 @@ rev=${rev:-'nixpkgs-unstable'}
# If NIX_PATH not imported - construct it from `rev`
NIX_PATH=${NIX_PATH:-"nixpkgs=https://github.com/nixos/nixpkgs/archive/$rev.tar.gz"}
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
@ -223,14 +223,14 @@ sudo nix-channel --update || true
# 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" = "" ]
then
# NOTE: Build of the inside repo branch - enable push Cachix cache
BUILD_PROJECT | cachix push "$name"
BUILD_PROJECT | cachix push "$project"
else