mirror of
https://github.com/haskell-nix/hnix.git
synced 2024-09-11 06:55:38 +03:00
CI: Travis: build.sh: add: MAIN function, add notes
M build.sh
This commit is contained in:
parent
7c6d5c295f
commit
8f77f35349
24
build.sh
24
build.sh
@ -41,3 +41,27 @@ allowInconsistentDependencies=${allowInconsistentDependencies:-'false'}
|
||||
ghcjsTmpLogFile=${ghcjsTmpLogFile:-'/tmp/ghcjsTmpLogFile.jog'}
|
||||
ghcjsLogTailLength=${ghcjsLogTailLength:-'10000'}
|
||||
|
||||
MAIN() {
|
||||
|
||||
# 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
|
||||
|
||||
if [ ! "$CACHIX_SIGNING_KEY" = "" ]
|
||||
|
||||
then
|
||||
|
||||
# NOTE: Build of the inside repo branch - enable push Cachix cache
|
||||
BUILD_PROJECT | cachix push "$name"
|
||||
|
||||
else
|
||||
|
||||
# NOTE: Build of the side repo/PR - can not push Cachix cache
|
||||
BUILD_PROJECT
|
||||
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
# NOTE: Run the entry function of the script
|
||||
MAIN
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user