Skip to content

Commit

Permalink
Buildkite: Straighten out environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
rvl committed Oct 21, 2021
1 parent 71026ea commit ce4877b
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
14 changes: 13 additions & 1 deletion .buildkite/nightly.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
env:
NIX_PATH: "channel:nixos-20.09"
LC_ALL: "en_US.UTF-8"
NIX_PATH: "channel:nixos-21.05"

# Per-container variables
SCRATCH_DIR: "/scratch/cardano-wallet"
BUILD_DIR: "/build/cardano-wallet"
STACK_ROOT: "/build/cardano-wallet.stack"
CABAL_DIR: "/build/cardano-wallet.cabal"
XDG_STATE_HOME: "/build/cardano-wallet/.state"
XDG_CACHE_HOME: "/build/cardano-wallet/.cache"
TESTS_LOGDIR: "/build/cardano-wallet/integration-test-logs"

# Per-host variables - shared across containers on host
CACHE_DIR: "/cache/cardano-wallet"

steps:
- label: 'Restore benchmark - cardano mainnet'
Expand Down
15 changes: 12 additions & 3 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
env:
LC_ALL: "en_US.UTF-8"
NIX_PATH: "channel:nixos-21.05"

# Per-container variables
SCRATCH_DIR: "/scratch/cardano-wallet"
BUILD_DIR: "/build/cardano-wallet"
STACK_ROOT: "/build/cardano-wallet.stack"
CABAL_DIR: "/build/cardano-wallet.cabal"
XDG_STATE_HOME: "/build/cardano-wallet/.state"
XDG_CACHE_HOME: "/build/cardano-wallet/.cache"
TESTS_LOGDIR: "/build/cardano-wallet/integration-test-logs"

# Per-host variables - shared across containers on host
CACHE_DIR: "/cache/cardano-wallet"
LC_ALL: "en_US.UTF-8"
TESTS_LOGDIR: "/tmp/wallet-integration-logs"

steps:
- label: 'Prevent merging to wrong branch'
Expand All @@ -16,7 +25,7 @@ steps:

- label: 'Stack Rebuild'
command:
- "rm -rf $TESTS_LOGDIR && mkdir $TESTS_LOGDIR"
- "rm -rf $TESTS_LOGDIR && mkdir -p $TESTS_LOGDIR"
- "nix-build .buildkite/default.nix -o sr"
- "./sr/bin/rebuild --build-dir=$BUILD_DIR --cache-dir=$CACHE_DIR"
timeout_in_minutes: 120
Expand Down

0 comments on commit ce4877b

Please sign in to comment.