Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

Commit

Permalink
[DEVOPS-942] Fixing locale warnings and renaming walletIntegration (#…
Browse files Browse the repository at this point in the history
…3206)

* [DEVOPS-942] Fixing locale warnings and renaming walletIntegration

* [DEVOPS-942] Fixing integration tests and shellcheck failures
  • Loading branch information
disassembler authored and jmitchell committed Jul 9, 2018
1 parent ecda589 commit b20ea60
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ let
shellcheck = pkgs.callPackage ./scripts/test/shellcheck.nix { inherit src; };
hlint = pkgs.callPackage ./scripts/test/hlint.nix { inherit src; };
stylishHaskell = pkgs.callPackage ./scripts/test/stylish.nix { inherit (cardanoPkgs) stylish-haskell; inherit src localLib; };
buildWalletIntegration = pkgs.callPackage ./scripts/test/wallet/integration/build-test.nix { inherit walletIntegrationTests pkgs; };
walletIntegration = pkgs.callPackage ./scripts/test/wallet/integration/build-test.nix { inherit walletIntegrationTests pkgs; };
swaggerSchemaValidation = pkgs.callPackage ./scripts/test/wallet/swaggerSchemaValidation.nix { inherit gitrev; };
};
cardano-sl-explorer-frontend = (import ./explorer/frontend {
Expand Down
1 change: 1 addition & 0 deletions docker.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ let
#!/bin/sh
set -e
set -o pipefail
export LOCALE_ARCHIVE="${pkgs.glibcLocales}/lib/locale/locale-archive"
if [ ! -d /wallet ]; then
echo '/wallet volume not mounted, you need to create one with `docker volume create` and pass the correct -v flag to `docker run`'
exit 1
Expand Down
2 changes: 0 additions & 2 deletions lib.nix
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,5 @@ in lib // (rec {
utf8LocaleSetting = ''
export LC_ALL=en_GB.UTF-8
export LANG=en_GB.UTF-8
'' + lib.optionalString (pkgs.glibcLocales != null) ''
export LOCALE_ARCHIVE="${pkgs.glibcLocales}/lib/locale/locale-archive"
'';
})
4 changes: 2 additions & 2 deletions scripts/haskell/update-cabal-versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ function updateVersion() {
sed -E -i -e "s/^(version\\:\\s+)(.+)/\\1$newVersion/" "$1"
}

for CB in `git ls-files '*/cardano-*.cabal'`; do
for CB in $(git ls-files '*/cardano-*.cabal'); do
echo " ${CB}"
updateVersion ${CB}
updateVersion "${CB}"
done

echo "Updated to version $newVersion"
4 changes: 2 additions & 2 deletions scripts/test/stylish.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ runCommand, stylish-haskell, src, lib, localLib, diffutils }:
{ runCommand, stylish-haskell, src, lib, localLib, diffutils, glibcLocales }:

let
# just haskell sources and the stylish-haskell config file
Expand All @@ -14,7 +14,7 @@ let
in
runCommand "cardano-stylish-check" {
succeedOnFailure = true;
buildInputs = [ stylish-haskell diffutils ];
buildInputs = [ stylish-haskell diffutils glibcLocales ];
} ''
set +e
${localLib.utf8LocaleSetting}
Expand Down
4 changes: 2 additions & 2 deletions scripts/test/wallet/integration/build-test.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{pkgs, stdenv, walletIntegrationTests }:
{pkgs, stdenv, walletIntegrationTests, glibcLocales }:
stdenv.mkDerivation rec {
name = "cardano-wallet-integration-tests";
buildInputs = with pkgs; [ jq curl ];
buildInputs = with pkgs; [ jq curl glibcLocales ];
buildCommand = ''
${walletIntegrationTests}
if [ $? == 0 ]
Expand Down
2 changes: 1 addition & 1 deletion scripts/test/wallet/integration/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ in pkgs.writeScript "integration-tests" ''
# Verify we see "transaction list is empty after filtering out asset-locked source addresses" in at least 1 core node log file
if [[ $EXIT_STATUS -eq 0 ]]
then
${pkgs.gnugrep}/bin/grep "transaction list is empty after filtering out asset-locked source addresses" state-demo/logs/node*.json
${pkgs.gnugrep}/bin/grep "transaction list is empty after filtering out asset-locked source addresses" state-demo/logs/core*.json
EXIT_STATUS=$?
fi
stop_cardano
Expand Down

0 comments on commit b20ea60

Please sign in to comment.