diff --git a/.circleci/config.yml b/.circleci/config.yml index 77b792799c..d758e2dadd 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -99,6 +99,19 @@ jobs: export LEO=/home/circleci/project/project/bin/leo ./project/.circleci/leo-clean.sh + leo-setup: + docker: + - image: cimg/rust:1.50.0 + resource_class: xlarge + steps: + - attach_workspace: + at: /home/circleci/project/ + - run: + name: leo setup + command: | + export LEO=/home/circleci/project/project/bin/leo + ./project/.circleci/leo-setup.sh + leo-add-remove: docker: - image: cimg/rust:1.50.0 @@ -112,7 +125,7 @@ jobs: export LEO=/home/circleci/project/project/bin/leo ./project/.circleci/leo-add-remove.sh - leo-setup: + leo-login-logout: docker: - image: cimg/rust:1.50.0 resource_class: xlarge @@ -120,10 +133,10 @@ jobs: - attach_workspace: at: /home/circleci/project/ - run: - name: leo setup + name: leo login & logout command: | export LEO=/home/circleci/project/project/bin/leo - ./project/.circleci/leo-setup.sh + ./project/.circleci/leo-login-logout.sh workflows: version: 2 @@ -139,9 +152,12 @@ workflows: - leo-clean: requires: - rust-stable - - leo-add-remove: - requires: - - rust-stable - leo-setup: requires: - rust-stable + - leo-add-remove: + requires: + - rust-stable + - leo-login-logout: + requires: + - rust-stable \ No newline at end of file diff --git a/.circleci/leo-login-logout.sh b/.circleci/leo-login-logout.sh new file mode 100755 index 0000000000..1353b18d72 --- /dev/null +++ b/.circleci/leo-login-logout.sh @@ -0,0 +1,7 @@ +# leo login & logout + +$LEO new my-app && cd my-app || exit 1 +$LEO login -u "$ALEO_PM_USERNAME" -p "$ALEO_PM_PASSWORD" +$LEO add howard/silly-sudoku +$LEO remove silly-sudoku +$LEO logout