-
-
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.
[FLORA-442] Implement package import from multiple repos (#444)
- Loading branch information
Showing
36 changed files
with
782 additions
and
261 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 |
---|---|---|
|
@@ -101,6 +101,6 @@ jobs: | |
migrate init "${FLORA_DB_CONNSTRING}" | ||
migrate migrate "${FLORA_DB_CONNSTRING}" migrations | ||
cabal run -- flora-cli create-user --username "hackage-user" --email "[email protected]" --password "foobar2000" | ||
cabal test | ||
make 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 |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
.hspec-failures | ||
.vscode/ | ||
/.stack-work/ | ||
01-index | ||
01-index* | ||
< | ||
Session.vim | ||
_data/ | ||
|
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 |
---|---|---|
|
@@ -42,11 +42,13 @@ db-migrate: ## Apply database migrations | |
|
||
db-reset: db-drop db-setup db-provision ## Reset the dev database | ||
|
||
db-provision: build ## Load the development data in the database | ||
db-provision: ## Create categories and repositories | ||
@cabal run -- flora-cli create-user --username "hackage-user" --email "[email protected]" --password "foobar2000" | ||
@cabal run -- flora-cli provision categories | ||
@cabal run -- flora-cli provision-repository --name "hackage" --url https://hackage.haskell.org | ||
@cabal run -- flora-cli provision-repository --name "cardano" --url https://input-output-hk.github.io/cardano-haskell-packages | ||
|
||
db-provision-test-packages: | ||
db-provision-test-packages: ## Load development data in the database | ||
@cabal run -- flora-cli provision test-packages | ||
|
||
import-from-hackage: ## Imports every cabal file from the ./index-01 directory | ||
|
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
alter table package_indexes | ||
add url text not null; |
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.