From fee71becadb11bee7cc6f1375771df8434baa2a3 Mon Sep 17 00:00:00 2001 From: damirka Date: Mon, 12 Apr 2021 17:21:13 +0300 Subject: [PATCH] fixes ci not showing credentials --- .circleci/leo-login-logout.sh | 8 ++++---- .circleci/r | 0 2 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 .circleci/r diff --git a/.circleci/leo-login-logout.sh b/.circleci/leo-login-logout.sh index c160c5f658..c1fe2d067d 100755 --- a/.circleci/leo-login-logout.sh +++ b/.circleci/leo-login-logout.sh @@ -4,11 +4,11 @@ $LEO login -u "$ALEO_PM_USERNAME" -p "$ALEO_PM_PASSWORD" $LEO new my-app && cd my-app || exit 1 cat Leo.toml -which wc -# verify that in Leo.toml there's a line with $ALEO_PM_USERNAME; -# because at the time of calling `leo new` user is logged in and we're expecting substitution -[[ $(cat Leo.toml | grep "\[$ALEO_PM_USERNAME\]" | wc -l) -eq 1 ]] || exit 1 +# verify that in Leo.toml there's no line with [AUTHOR]; +# since CI does not allow showing credentials, we won't see it in the file; +# so the only way to test is to make sure that there's just no [AUTHOR] there +[[ $(cat Leo.toml | grep "\[AUTHOR\]" | wc -l) -eq 0 ]] || exit 1 $LEO add howard/silly-sudoku $LEO remove silly-sudoku diff --git a/.circleci/r b/.circleci/r new file mode 100644 index 0000000000..e69de29bb2