Add leo login and logout to circleci

This commit is contained in:
howardwu 2021-02-24 22:22:29 -08:00
parent 2f0ad62795
commit 4a75b8d7fa
2 changed files with 29 additions and 6 deletions

View File

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

7
.circleci/leo-login-logout.sh Executable file
View File

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