fixes ci not showing credentials

This commit is contained in:
damirka 2021-04-12 17:21:13 +03:00
parent 9104ed4f91
commit fee71becad
2 changed files with 4 additions and 4 deletions

View File

@ -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

0
.circleci/r Normal file
View File