-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a create-user command in flora-cli (#86)
* Add a create-user command in flora-cli * Rework the test fixtures * Properly provision
- Loading branch information
Showing
14 changed files
with
112 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,6 +65,7 @@ jobs: | |
createdb -h "${FLORA_DB_HOST}" -p "${FLORA_DB_PORT}" -U "${FLORA_DB_USER}" -w "${FLORA_DB_DATABASE}" | ||
migrate init "${FLORA_PG_CONNSTRING}" | ||
migrate migrate "${FLORA_PG_CONNSTRING}" migrations | ||
cabal run -- flora-cli create-user --username "hackage-user" --email "[email protected]" --password "foobar2000" | ||
cabal test | ||
env: | ||
PGPASSWORD: "postgres" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,6 +33,7 @@ db-setup: db-create ## Setup the dev database | |
db-reset: db-drop db-setup db-provision ## Reset the dev database (uses Cabal) | ||
|
||
db-provision: build ## Load the development data in the database | ||
@cabal run -- flora-cli create-user --username "hackage-user" --email "[email protected]" --password "foobar2000" | ||
@cabal run -- flora-cli provision-fixtures | ||
|
||
repl: soufflé ## Start a cabal REPL | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,8 @@ export DATALOG_DIR="cbits/" | |
make db-drop | ||
make db-setup | ||
|
||
cabal run -- flora-cli create-user --username "hackage-user" --email "[email protected]" --password "foobar2000" | ||
|
||
if [ -z "$1" ] ; | ||
then | ||
cabal test | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.